From 1b6c5a520ac8ff3bf1cbac9b4edacf984f002577 Mon Sep 17 00:00:00 2001 From: "Bala.FA" Date: Fri, 5 Aug 2011 16:07:18 +0530 Subject: get_volume_user_cifs.py returns success when given volume is not configured for cifs export. Signed-off-by: Bala.FA --- .../WebContent/scripts/get_volume_user_cifs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) -- cgit