Update ping.py (#7944)
This commit is contained in:
1 parent
790610525b
commit
8a4e993183
1 file changed
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user