From 4576bf0d0d8c63219960d6c7b545bca94d7cacd9 Mon Sep 17 00:00:00 2001 From: Ramesh Nachimuthu Date: Wed, 16 Apr 2014 15:57:26 +0530 Subject: SNMP Trap Support : Fix for pep8 error Change-Id: Iba14a8af63741a5a5014baccaa5b37aad97c7657 Signed-off-by: Ramesh Nachimuthu --- plugins/hostsnmptrapgenerator.py.in | 6 +++--- plugins/servicesnmptrapgenerator.py.in | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/hostsnmptrapgenerator.py.in b/plugins/hostsnmptrapgenerator.py.in index b884974..a358de1 100755 --- a/plugins/hostsnmptrapgenerator.py.in +++ b/plugins/hostsnmptrapgenerator.py.in @@ -98,9 +98,9 @@ def formatargs(args): #Add quotes to string parameters to handle #parameters with multiple words separated with #spaces - args.nHostname = '''"'''+args.nHostname+'''"''' - args.nHostGroupName = '''"'''+args.nHostGroupName+'''"''' - args.nHostOutput = '''"'''+args.nHostOutput+'''"''' + args.nHostname = '''"''' + args.nHostname + '''"''' + args.nHostGroupName = '''"''' + args.nHostGroupName + '''"''' + args.nHostOutput = '''"''' + args.nHostOutput + '''"''' if __name__ == '__main__': diff --git a/plugins/servicesnmptrapgenerator.py.in b/plugins/servicesnmptrapgenerator.py.in index 1a4661f..66707d2 100755 --- a/plugins/servicesnmptrapgenerator.py.in +++ b/plugins/servicesnmptrapgenerator.py.in @@ -96,10 +96,10 @@ def formatargs(args): #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+'''"''' - args.nSvcOutput = '''"'''+args.nSvcOutput+'''"''' + args.nHostname = '''"''' + args.nHostname + '''"''' + args.nSvcDesc = '''"''' + args.nSvcDesc + '''"''' + args.nSvcGroupName = '''"''' + args.nSvcGroupName + '''"''' + args.nSvcOutput = '''"''' + args.nSvcOutput + '''"''' if __name__ == '__main__': -- cgit