diff options
Diffstat (limited to 'glusternagios/glustercli.py')
-rwxr-xr-x | glusternagios/glustercli.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/glusternagios/glustercli.py b/glusternagios/glustercli.py index 03ea806..5753811 100755 --- a/glusternagios/glustercli.py +++ b/glusternagios/glustercli.py @@ -459,6 +459,9 @@ def volumeQuotaStatus(volumeName, remoteServer=None): rc, out, err = _execGluster(command) if rc == 0: return _parseVolumeQuotaStatus(out) + else: + if len(err) > 0 and err[0].find("Quota is disabled") > -1: + return VolumeQuotaStatus.DISABLED raise GlusterCmdFailedException(rc, err) |