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

Remove trailing slash in VOSpace path.

parent 04ef6d49
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ class VOSGroup(RedisRPCClient):
        super(VOSGroup, self).__init__(self.host, self.port, self.db, self.rpcQueue)

    def addGroup(self, groupType, groupname, vospacePath):
        vospacePath = vospacePath.rstrip('/')
        if groupType == "read":
            requestType = "GRPR_ADD"
        else:
@@ -41,6 +42,7 @@ class VOSGroup(RedisRPCClient):
            sys.exit("\nFATAL: Unknown response type.\n")

    def delGroup(self, groupType, groupname, vospacePath):
        vospacePath = vospacePath.rstrip('/')
        if groupType == "read":
            requestType = "GRPR_DEL"
        else:
@@ -61,6 +63,7 @@ class VOSGroup(RedisRPCClient):
            sys.exit("\nFATAL: Unknown response type.\n")
            
    def listGroups(self, groupType, vospacePath):
        vospacePath = vospacePath.rstrip('/')
        if groupType == "read":
            requestType = "GRPR_LST"
        else: