diff options
author | elie <elie> | 2012-08-13 16:00:41 +0000 |
---|---|---|
committer | elie <elie> | 2012-08-13 16:00:41 +0000 |
commit | 935e6c07316beeb50d90e011c9ae3b9311948647 (patch) | |
tree | f0568fc7a380ced876729007f3101ea1f9ec10be | |
parent | aa14812dbf562eee00d0e567b55fcb66c88c23c0 (diff) | |
download | pysnmp-935e6c07316beeb50d90e011c9ae3b9311948647.tar.gz |
pre-process head var names to make them useable for further comparition
-rw-r--r-- | examples/v3arch/oneliner/manager/async/nextgen.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/v3arch/oneliner/manager/async/nextgen.py b/examples/v3arch/oneliner/manager/async/nextgen.py index f907730..8e89744 100644 --- a/examples/v3arch/oneliner/manager/async/nextgen.py +++ b/examples/v3arch/oneliner/manager/async/nextgen.py @@ -60,10 +60,11 @@ def cbFun(sendRequestHandle, errorIndication, errorStatus, errorIndex, cmdGen = cmdgen.AsynCommandGenerator() for authData, transportTarget, varNames in targets: + varBindHead = [ x[0] for x in cmdGen.makeReadVarBinds(varNames) ] cmdGen.nextCmd( authData, transportTarget, varNames, # User-space callback function and its context - (cbFun, (varNames, authData, transportTarget)), + (cbFun, (varBindHead, authData, transportTarget)), lookupNames=True, lookupValues=True ) |