Skip to content

Commit

Permalink
Correct an issue while init IP plugin (issue nicolargo#1528) again...
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Dec 17, 2019
1 parent 9525853 commit 48cb5ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions glances/plugins/glances_ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ def get(self):
if q.qsize() > 0:
ip = q.get()

if ip is None:
return None

return ', '.join(set([x.strip() for x in ip.split(',')]))

def _get_ip_public(self, queue_target, url, json=False, key=None):
Expand Down

0 comments on commit 48cb5ef

Please sign in to comment.