diff options
author | Ramesh Nachimuthu <rnachimu@redhat.com> | 2014-03-21 08:29:14 +0530 |
---|---|---|
committer | Bala.FA <barumuga@redhat.com> | 2014-04-29 10:21:37 +0530 |
commit | 8a3133b13a6637eb5ed2fb191603a944ccd9b0f0 (patch) | |
tree | 8aae0d05cf6bf92dc440fa18cb0515ef8d440ccf /plugins | |
parent | 1a2b04df7628833c48641050bf95fe493469fbb2 (diff) |
fix: Fix for pep8 error and import issue
Change-Id: I32ab9dc0c3971c3b6bbbdaeec5c9e9087485b077
Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
Reviewed-on: https://cuckoo.blr.redhat.com:8443/54
Reviewed-by: Sahina Bose <sabose@redhat.com>
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/check_cluster_vol_usage.py | 5 | ||||
-rw-r--r-- | plugins/livestatus.py | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/plugins/check_cluster_vol_usage.py b/plugins/check_cluster_vol_usage.py index 2225634..59c2335 100755 --- a/plugins/check_cluster_vol_usage.py +++ b/plugins/check_cluster_vol_usage.py @@ -59,8 +59,7 @@ def checkVolumePerfData(clusterName): # Main method if __name__ == "__main__": - parser = ArgumentParser(description= - "Calculate the aggregate " + parser = ArgumentParser(description="Calculate the aggregate " "capacity usage in cluster") parser.add_argument('-w', '--warning', action='store', @@ -91,7 +90,7 @@ if __name__ == "__main__": else: warn = int((args.warn * avail) / 100.0) crit = int((args.crit * avail) / 100.0) - usedpercent = int((used/avail) * 100.0) + usedpercent = int((used / avail) * 100.0) if (usedpercent >= args.warn): statusstr = "WARNING" exitstatus = 1 diff --git a/plugins/livestatus.py b/plugins/livestatus.py index e2f4f03..f0b3bb8 100644 --- a/plugins/livestatus.py +++ b/plugins/livestatus.py @@ -21,7 +21,7 @@ # import socket -from plugins import constants +import constants _socketPath = constants.LIVESTATUS_SOCKETPATH |