From 1d1b95d1e84383bdd6d53ffbd9e0a21b06fece24 Mon Sep 17 00:00:00 2001 From: Timothy Asir Jeyasingh Date: Tue, 24 Jun 2014 15:15:43 +0530 Subject: fix pep8 errors Change-Id: Ia0f570dfb74d6c41484e509f704df12d3b96db17 Signed-off-by: Timothy Asir Jeyasingh Reviewed-on: http://review.gluster.org/8161 Tested-by: Timothy Asir Reviewed-by: Shubhendu Tripathi --- plugins/servicesnmptrapgenerator.py.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/servicesnmptrapgenerator.py.in') diff --git a/plugins/servicesnmptrapgenerator.py.in b/plugins/servicesnmptrapgenerator.py.in index 66707d2..9f3f388 100755 --- a/plugins/servicesnmptrapgenerator.py.in +++ b/plugins/servicesnmptrapgenerator.py.in @@ -1,6 +1,6 @@ #!/usr/bin/python # servicesnmptrapgenerator.py.in -- nagios plugin for generating the -#SNMP traps on service status change +# SNMP traps on service status change # Copyright (C) 2014 Red Hat Inc # # This program is free software; you can redistribute it and/or @@ -86,16 +86,16 @@ def buildandsendsnmptrap(args): def formatargs(args): - #convert nSvcNotifyType to enum value + # convert nSvcNotifyType to enum value svcnotifytype = {'problem': '0', 'recovery': '1', 'acknowledgement': '2', 'flappingstart': '3', 'flappingstop': '4'} args.nSvcNotifyType = svcnotifytype[args.nSvcNotifyType.lower()] - #Add quotes to string parameters to handle - #parameters with multiple words separated with - #spaces + # Add quotes to string parameters to handle + # parameters with multiple words separated with + # spaces args.nHostname = '''"''' + args.nHostname + '''"''' args.nSvcDesc = '''"''' + args.nSvcDesc + '''"''' args.nSvcGroupName = '''"''' + args.nSvcGroupName + '''"''' -- cgit