Commit 7f45df98 authored by arthur-zzz's avatar arthur-zzz
Browse files

Fix pep8

parent 26030497
Pipeline #28915 passed with stages
in 25 minutes and 18 seconds
......@@ -832,25 +832,25 @@ class TopologyDiscoveryCheck(DiscoveryCheck):
self.logger.debug(
"Candidates: %s, Confirmed: %s", candidates[remote_object], confirmed
)
for l, r in candidates[remote_object] - confirmed:
problems[l] = "Pending link: %s - %s:%s" % (l, remote_object, r)
li = self.clean_interface(self.object, l)
for lc, rc in candidates[remote_object] - confirmed:
problems[lc] = "Pending link: %s - %s:%s" % (lc, remote_object, rc)
li = self.clean_interface(self.object, lc)
if not li:
self.logger.info("Cannot clean interface %s:%s. Skipping", self.object, l)
self.logger.info("Cannot clean interface %s:%s. Skipping", self.object, lc)
continue
ri = self.clean_interface(remote_object, r)
ri = self.clean_interface(remote_object, rc)
if not ri:
self.logger.info("Cannot clean interface %s:%s. Skipping", remote_object, r)
self.logger.info("Cannot clean interface %s:%s. Skipping", remote_object, rc)
continue
self.reject_link(self.object, li, remote_object, ri)
for l, r in candidates[remote_object] & confirmed:
li = self.clean_interface(self.object, l)
for lc, rc in candidates[remote_object] & confirmed:
li = self.clean_interface(self.object, lc)
if not li:
self.logger.info("Cannot clean interface %s:%s. Skipping", self.object, l)
self.logger.info("Cannot clean interface %s:%s. Skipping", self.object, lc)
continue
ri = self.clean_interface(remote_object, r)
ri = self.clean_interface(remote_object, rc)
if not ri:
self.logger.info("Cannot clean interface %s:%s. Skipping", remote_object, r)
self.logger.info("Cannot clean interface %s:%s. Skipping", remote_object, rc)
continue
self.confirm_link(self.object, li, remote_object, ri)
if problems:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment