Skip to content

Commit

Permalink
Fixed an await.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Sep 12, 2023
1 parent 5280c5c commit 80d1e55
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@


async def getone(snmpEngine, hostname):
get_result = await getCmd(
errorIndication, errorStatus, errorIndex, varBinds = await getCmd(
snmpEngine,
CommunityData("public"),
UdpTransportTarget(hostname),
ContextData(),
ObjectType(ObjectIdentity("SNMPv2-MIB", "sysDescr", 0)),
)

errorIndication, errorStatus, errorIndex, varBinds = await get_result
if errorIndication:
print(errorIndication)
elif errorStatus:
Expand Down

0 comments on commit 80d1e55

Please sign in to comment.