Feb-26-2018, 08:56 AM
(Feb-26-2018, 07:58 AM)Gribouillis Wrote: What happens when you printdic
? Are there three'active'
values?
Hi Gribouillis
Thanks for reply
Yes, there are 2 active and one inactive node in that json data...
What I feel that program is not going into below loop
if count != 3:
for key2, value2 in dic.items():
if value2 != 'active':
key2 = (key1 + ': !!!Alert!!! ' + key2 + ' is unhealthy ')
failed_node = key2
msg_text = (CB_message + failed_node + 'Failed')
and I did this program using pycharm gui and how the below it says
local variable msg_text value is not used something like warning...
for below line of code
msg_text = (CB_message + failed_node + 'Failed')
am i doing something wrong in looping ?