Update ping.py (#7944)
This commit is contained in:
parent
790610525b
commit
8a4e993183
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ class Host(object):
|
||||||
def update(self, see):
|
def update(self, see):
|
||||||
"""Update device state by sending one or more ping messages."""
|
"""Update device state by sending one or more ping messages."""
|
||||||
failed = 0
|
failed = 0
|
||||||
while failed < self._count: # check more times if host in unreachable
|
while failed < self._count: # check more times if host is unreachable
|
||||||
if self.ping():
|
if self.ping():
|
||||||
see(dev_id=self.dev_id, source_type=SOURCE_TYPE_ROUTER)
|
see(dev_id=self.dev_id, source_type=SOURCE_TYPE_ROUTER)
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue