mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-27 10:42:52 +03:00
Issue with ports plugin (for URL request) #3008
This commit is contained in:
parent
da54624d5a
commit
0370c91567
@ -203,8 +203,8 @@ class PluginModel(GlancesPluginModel):
|
||||
|
||||
def get_status_and_helper(self, p):
|
||||
return {
|
||||
'host' in p: (self.get_ports_alert, self.set_status_if_host(p)),
|
||||
'url' in p: (self.get_web_alert, self.set_status_if_url(p)),
|
||||
'host' in p: (self.get_ports_alert, self.set_status_if_host(p)) if 'host' in p else None,
|
||||
'url' in p: (self.get_web_alert, self.set_status_if_url(p)) if 'url' in p else None,
|
||||
}
|
||||
|
||||
def msg_curse(self, args=None, max_width=None):
|
||||
|
Loading…
Reference in New Issue
Block a user