added more conflicting chars
This commit is contained in:
parent
e670a79d6d
commit
66107940a2
|
|
@ -87,7 +87,7 @@ class Agent(object):
|
|||
def delete_conflict_characters(value_dict):
|
||||
new_dict = {}
|
||||
for key, value in value_dict.items():
|
||||
new_value = str(value).replace('[', '').replace(']', '')
|
||||
new_value = str(value).replace('[', '').replace(']', '').replace('\\', '')
|
||||
new_dict[key] = new_value
|
||||
return new_dict
|
||||
|
||||
|
|
@ -117,5 +117,3 @@ telegraf_client = TelegrafClient(host=config['telegraf']['host'], port=config['t
|
|||
for agent in agent_list:
|
||||
a = Agent(agent, api)
|
||||
a.send_agent_metrics(telegraf_client)
|
||||
for k, v in a.get_agent_metrics().items():
|
||||
print(k, v)
|
||||
|
|
|
|||
Loading…
Reference in New Issue