for hostname in list(offlinedictcopy.keys()): details = offlinedictcopy[hostname] if…
- User
for hostname in list(offline_dict_copy.keys()): details = offline_dict_copy[hostname] if details.get('inspect_status') == 'Online': del self.offline_dict[hostname]
make high green before remove
- Assistant
Certainly! To "make high green" before removing the hostname from
self.offline_dict, you can modify your code by inserting the necessary action just before the deletion. Here's how you can do it: