summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/com.gluster.storage.management.gateway/WebContent/scripts/get_volume_user_cifs.py3
1 files changed, 3 insertions, 0 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 9cfe9dcf..55821b60 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
@@ -24,6 +24,9 @@ def main():
volumeName = sys.argv[1]
+ if not os.path.exists(cifsVolumeFile):
+ sys.exit(0)
+
try:
fp = open(cifsVolumeFile)
content = fp.read()