Skip to content
Snippets Groups Projects
Unverified Commit 5bb8535f authored by ysde's avatar ysde Committed by GitHub
Browse files

Merge pull request #44 from azman0101/fix/cast-to-str

fix(casting): cast int to str
parents 8327663d 5bb842f6
No related branches found
No related tags found
No related merge requests found
...@@ -37,12 +37,12 @@ def get_indivisual_alert_channel_and_save(channels): ...@@ -37,12 +37,12 @@ def get_indivisual_alert_channel_and_save(channels):
save_alert_channel( save_alert_channel(
to_python2_and_3_compatible_string(channel['name']), to_python2_and_3_compatible_string(channel['name']),
to_python2_and_3_compatible_string(channel_identifier), to_python2_and_3_compatible_string(str(channel_identifier)),
channel channel
) )
file_path = folder_path + '/' + log_file file_path = folder_path + '/' + log_file
with open(u"{0}".format(file_path) , 'w+') as f: with open(u"{0}".format(file_path) , 'w+') as f:
f.write('{}\t{}'.format(to_python2_and_3_compatible_string(channel_identifier), to_python2_and_3_compatible_string(channel['name']))) f.write('{}\t{}'.format(to_python2_and_3_compatible_string(str(channel_identifier)), to_python2_and_3_compatible_string(channel['name'])))
alert_channels = get_all_alert_channels_in_grafana() alert_channels = get_all_alert_channels_in_grafana()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment