Commit ac8a8cd7 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Minor fix.

parent d6984747
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ class VOSStorage(RedisRPCClient):
                tapePoolList = storageResponse["tapePoolList"]
                while tapePool not in tapePoolList:
                    print("\nSelect one of the available tape pools:")
                    print("\n" + tabulate(tapePoolList, headers = ["tape_pool"], tablefmt = "pretty") + "\n")
                    print("\n" + tabulate([ [t] for t in tapePoolList ], headers = ["tape_pool"], tablefmt = "pretty") + "\n")
                    try:
                       tapePool = input("Please, insert a tape pool: ")
                    except ValueError:
+3 −1
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@ class StorageRPCServer(RedisRPCServer):
            storageType = requestBody["storageType"]
            storageBasePath = requestBody["basePath"]
            storageHostname = requestBody["hostname"]
            tapePool = requestBody["tapePool"]
            if not os.path.exists(storageBasePath):
                errorMsg = "Base path doesn't exist."
                self.logger.error(errorMsg)
@@ -70,7 +71,8 @@ class StorageRPCServer(RedisRPCServer):
                result = self.dbConn.insertStorage(storageType,
                                                   storageBasePath,
                                                   storageHostname,
                                                   self.vospaceUserBasePath)
                                                   self.vospaceUserBasePath,
                                                   tapePool)
            except Exception:
                errorMsg = "Database error."
                self.logger.exception(errorMsg)