Loading client/vos_data +6 −4 Original line number Diff line number Diff line Loading @@ -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) Loading Loading @@ -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() Loading
client/vos_data +6 −4 Original line number Diff line number Diff line Loading @@ -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) Loading Loading @@ -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()