From 2acba57a0624005af1a882d1164e6bb3728f1361 Mon Sep 17 00:00:00 2001 From: "Bala.FA" Date: Sun, 7 Aug 2011 21:31:25 +0530 Subject: get_volume_user_cifs.py returns success if cifsVolumeFile is not present Signed-off-by: Bala.FA --- .../WebContent/scripts/get_volume_user_cifs.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/com.gluster.storage.management.gateway/WebContent/scripts') 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() -- cgit