further f string updates

This commit is contained in:
Blake Harnden 2019-10-17 19:25:52 -07:00
parent c9326b6a97
commit 79cde8cd59
11 changed files with 21 additions and 55 deletions

View file

@ -27,7 +27,7 @@ _DIR = os.path.dirname(os.path.abspath(__file__))
def ping(from_node, to_node, ip_prefixes, count=3):
address = ip_prefixes.ip4_address(to_node)
try:
from_node.node_net_cmd("ping -c %s %s" % (count, address))
from_node.node_net_cmd(f"ping -c {count} {address}")
status = 0
except CoreCommandError as e:
status = e.returncode