diff options
| author | Bala.FA <bala@gluster.com> | 2011-08-07 21:31:25 +0530 |
|---|---|---|
| committer | Bala.FA <bala@gluster.com> | 2011-08-07 21:32:54 +0530 |
| commit | 2acba57a0624005af1a882d1164e6bb3728f1361 (patch) | |
| tree | a52ecbc20f5f5c3e7d2d0c9a3a171c589b15007a /src | |
| parent | 1468f3020481bc4243e46111f4faf8d550085238 (diff) | |
get_volume_user_cifs.py returns success if cifsVolumeFile is not present
Signed-off-by: Bala.FA <bala@gluster.com>
Diffstat (limited to 'src')
| -rwxr-xr-x | src/com.gluster.storage.management.gateway/WebContent/scripts/get_volume_user_cifs.py | 3 |
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() |
