summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBala.FA <bala@gluster.com>2011-08-05 16:07:18 +0530
committerBala.FA <bala@gluster.com>2011-08-05 16:10:00 +0530
commit1b6c5a520ac8ff3bf1cbac9b4edacf984f002577 (patch)
treed0025ae3409deae3670f5abe59d6dd1159ab6098
parent879fd2f4d671136d20bb59f3a39890d283650c19 (diff)
get_volume_user_cifs.py returns success when given volume is not configured for cifs export.
Signed-off-by: Bala.FA <bala@gluster.com>
-rwxr-xr-xsrc/com.gluster.storage.management.gateway/WebContent/scripts/get_volume_user_cifs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com.gluster.storage.management.gateway/WebContent/scripts/get_volume_user_cifs.py b/src/com.gluster.storage.management.gateway/WebContent/scripts/get_volume_user_cifs.py
index 76f8c318..9cfe9dcf 100755
--- a/src/com.gluster.storage.management.gateway/WebContent/scripts/get_volume_user_cifs.py
+++ b/src/com.gluster.storage.management.gateway/WebContent/scripts/get_volume_user_cifs.py
@@ -33,7 +33,8 @@ def main():
if tokens[0] == volumeName:
print "\n".join(tokens[1:])
sys.exit(0)
- sys.exit(1)
+ # given volume is not configured for cifs export
+ sys.exit(0)
except IOError, e:
Utils.log("failed to read file %s: %s" % (cifsVolumeFile, str(e)))
sys.exit(2)