From 8a3133b13a6637eb5ed2fb191603a944ccd9b0f0 Mon Sep 17 00:00:00 2001 From: Ramesh Nachimuthu Date: Fri, 21 Mar 2014 08:29:14 +0530 Subject: fix: Fix for pep8 error and import issue Change-Id: I32ab9dc0c3971c3b6bbbdaeec5c9e9087485b077 Signed-off-by: Ramesh Nachimuthu Reviewed-on: https://cuckoo.blr.redhat.com:8443/54 Reviewed-by: Sahina Bose --- plugins/check_cluster_vol_usage.py | 5 ++--- plugins/livestatus.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins') 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 -- cgit