Skip to content
This repository was archived by the owner on Dec 17, 2021. It is now read-only.

Commit 9438ced

Browse files
lingy1028mayurah
authored andcommitted
fix: added quote for value part
1 parent 44b6b4c commit 9438ced

File tree

1 file changed

+1
-1
lines changed
  • splunk_connect_for_snmp_poller/manager

1 file changed

+1
-1
lines changed

splunk_connect_for_snmp_poller/manager/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def get_var_binds_string(mib_server_url, hec_config, varBinds):
147147
}
148148
result = json.dumps(result)
149149
else:
150-
result = "{} = {}".format(name.prettyPrint(), val.prettyPrint())
150+
result = '{oid}="{value}"'.format(oid=name.prettyPrint(), value=val.prettyPrint())
151151

152152
except Exception as e:
153153
logger.debug(f'Exception occured while logging varBinds name & value. Exception: {e}')

0 commit comments

Comments
 (0)