From a3d30eb32fa0872be900125c7c9150d301b8796b Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Fri, 26 Sep 2025 11:16:25 +0200 Subject: [PATCH] test/infamy: minor, whitespace only Signed-off-by: Joachim Wiberg --- test/infamy/env.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/test/infamy/env.py b/test/infamy/env.py index a36d63d2..caac53a0 100644 --- a/test/infamy/env.py +++ b/test/infamy/env.py @@ -117,13 +117,13 @@ class Env(object): return self.ptop.get_password(node) def is_reachable(self, node, port): - ip = neigh.ll6ping(port) - if not ip: - return False + ip = neigh.ll6ping(port) + if not ip: + return False - return util.is_reachable(ip, self, self.get_password(node)) + return util.is_reachable(ip, self, self.get_password(node)) - def attach(self, node, port="mgmt", protocol=None, test_reset=True, username = None, password = None): + def attach(self, node, port="mgmt", protocol=None, test_reset=True, username=None, password=None): """Attach to node on port using protocol.""" name = node @@ -133,7 +133,6 @@ class Env(object): else: mapping = None - # Precedence: # 1. Caller specifies `protocol` # 2. User specifies `-t` when executing test @@ -159,8 +158,10 @@ class Env(object): if protocol == "netconf": dev = netconf.Device(name, - location=netconf.Location(cport, mgmtip, - username,password), + location=netconf.Location(cport, + mgmtip, + username, + password), mapping=mapping, yangdir=self.args.yangdir) if test_reset: