summaryrefslogtreecommitdiffstats
path: root/src/com.gluster.storage.management.gateway/WebContent/scripts/get_volume_user_cifs.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/com.gluster.storage.management.gateway/WebContent/scripts/get_volume_user_cifs.py')
-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)