Loading client/vos_storage +2 −5 Original line number Diff line number Diff line Loading @@ -88,7 +88,7 @@ class VOSStorage(RedisRPCClient): if not storageList: sys.exit("No storage point found. Please add at least one storage point.\n") print("\nSelect the storage location to remove:") print("\n" + tabulate(storageList, headers = "keys", tablefmt = "pretty") "\n") print("\n" + tabulate(storageList, headers = "keys", tablefmt = "pretty") + "\n") storageIdList = [] for st in storageList: storageIdList.append(st["storage_id"]) Loading Loading @@ -140,13 +140,10 @@ class VOSStorage(RedisRPCClient): def list(self): storageRequest = { "requestType": "STORAGE_LST" } storageResponse = self.call(storageRequest) if "responseType" not in storageResponse: sys.exit("FATAL: Malformed response, storage acknowledge expected.\n") elif storageResponse["responseType"] == "STORAGE_LST_DONE": print() print(tabulate(storageResponse["storageList"], headers = "keys", tablefmt = "pretty")) print() print("\n" + tabulate(storageResponse["storageList"], headers = "keys", tablefmt = "pretty") + "\n") elif storageResponse["responseType"] == "ERROR": errorCode = storageResponse["errorCode"] errorMsg = storageResponse["errorMsg"] Loading Loading
client/vos_storage +2 −5 Original line number Diff line number Diff line Loading @@ -88,7 +88,7 @@ class VOSStorage(RedisRPCClient): if not storageList: sys.exit("No storage point found. Please add at least one storage point.\n") print("\nSelect the storage location to remove:") print("\n" + tabulate(storageList, headers = "keys", tablefmt = "pretty") "\n") print("\n" + tabulate(storageList, headers = "keys", tablefmt = "pretty") + "\n") storageIdList = [] for st in storageList: storageIdList.append(st["storage_id"]) Loading Loading @@ -140,13 +140,10 @@ class VOSStorage(RedisRPCClient): def list(self): storageRequest = { "requestType": "STORAGE_LST" } storageResponse = self.call(storageRequest) if "responseType" not in storageResponse: sys.exit("FATAL: Malformed response, storage acknowledge expected.\n") elif storageResponse["responseType"] == "STORAGE_LST_DONE": print() print(tabulate(storageResponse["storageList"], headers = "keys", tablefmt = "pretty")) print() print("\n" + tabulate(storageResponse["storageList"], headers = "keys", tablefmt = "pretty") + "\n") elif storageResponse["responseType"] == "ERROR": errorCode = storageResponse["errorCode"] errorMsg = storageResponse["errorMsg"] Loading