summaryrefslogtreecommitdiff
path: root/examples/hlapi/twisted/manager/cmdgen/v1-get.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hlapi/twisted/manager/cmdgen/v1-get.py')
-rw-r--r--examples/hlapi/twisted/manager/cmdgen/v1-get.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/hlapi/twisted/manager/cmdgen/v1-get.py b/examples/hlapi/twisted/manager/cmdgen/v1-get.py
index 6cb2f17e..21719ff7 100644
--- a/examples/hlapi/twisted/manager/cmdgen/v1-get.py
+++ b/examples/hlapi/twisted/manager/cmdgen/v1-get.py
@@ -19,7 +19,9 @@ from twisted.internet.task import react
from pysnmp.hlapi.twisted import *
-def success((errorStatus, errorIndex, varBinds), hostname):
+def success(args, hostname):
+ (errorStatus, errorIndex, varBinds) = args
+
if errorStatus:
print('%s: %s at %s' % (hostname,
errorStatus.prettyPrint(),