提交 34f681bb 编写于 作者: N nicolargo

Merge branch 'issue1176' into develop

......@@ -17,6 +17,7 @@ Bugs corrected:
* Crash in the Wifi plugin on my Laptop #1151
* Failed to connect to bus: No such file or directory #1156
* glances_plugin.py has a problem with specific docker output #1160
* Key error 'address' in the IP plugin #1176
Backward-incompatible changes:
......
......@@ -130,8 +130,9 @@ class Plugin(GlancesPlugin):
ret.append(self.curse_add_line(msg))
msg = 'IP '
ret.append(self.curse_add_line(msg, 'TITLE'))
msg = '{}'.format(self.stats['address'])
ret.append(self.curse_add_line(msg))
if 'address' in self.stats:
msg = '{}'.format(self.stats['address'])
ret.append(self.curse_add_line(msg))
if 'mask_cidr' in self.stats:
# VPN with no internet access (issue #842)
msg = '/{}'.format(self.stats['mask_cidr'])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册