Commit 34d1dd68 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Minor changes.

parent f0dbe1c4
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -62,6 +62,8 @@ DESCRIPTION

    def store(self, cmd, username):
        request_type = cmd.upper()
        if request_type == "CSTORE":
            sys.exit("\nNo se pol (per ora).\n")
        storeRequest = { "requestType": request_type, "userName": username }
        print(f"\nSending {request_type} request...\n")
        storeResponse = self.call(storeRequest)
@@ -126,16 +128,16 @@ DESCRIPTION


# Create new AMQPClient object
dataArchiverCli = AMQPClient()
vosDataCli = AMQPClient()

# Check the number of input args
if len(sys.argv) == 3:
    script, cmd, username = sys.argv
else:
    dataArchiverCli.help()
    vosDataCli.help()

# Check the command passed by the user
if cmd == "cstore" or cmd == "hstore":
    dataArchiverCli.store(cmd, username)
    vosDataCli.store(cmd, username)
else:
    dataArchiverCli.help()
    vosDataCli.help()