summaryrefslogtreecommitdiffstats
path: root/src/com.gluster.storage.management.gateway/WebContent/scripts
diff options
context:
space:
mode:
authorSelvasundaram <selvam@gluster.com>2011-08-08 12:04:10 +0530
committerSelvasundaram <selvam@gluster.com>2011-08-08 12:04:10 +0530
commit9cd9cb2f6da78c01fb3282307af783fb20213de0 (patch)
tree9049428849f6f9464696256ef70149f9da716e72 /src/com.gluster.storage.management.gateway/WebContent/scripts
parent9c559312b8e7d72963723533affb3889b2ca1aef (diff)
parent6beba13685449373636496332a29204d245f5870 (diff)
Merge branch 'master' of github.com:gluster/console
Diffstat (limited to 'src/com.gluster.storage.management.gateway/WebContent/scripts')
-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()