fix python black formatting

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
This commit is contained in:
Rich Megginson 2024-06-03 13:05:28 -06:00 committed by Richard Megginson
parent b0517d1cfb
commit b2fdc87366
3 changed files with 13 additions and 14 deletions

View file

@ -2524,11 +2524,11 @@ class Cmd_nm(Cmd):
% (
con.get_id(),
con.get_uuid(),
"not-active"
if not is_active
else "is-modified"
if is_modified
else "force-state-change",
(
"not-active"
if not is_active
else "is-modified" if is_modified else "force-state-change"
),
),
)
self.connections_data_set_changed(idx)
@ -2784,11 +2784,11 @@ class Cmd_initscripts(Cmd):
"up connection %s (%s)"
% (
name,
"not-active"
if is_active is not True
else "is-modified"
if is_modified
else "force-state-change",
(
"not-active"
if is_active is not True
else "is-modified" if is_modified else "force-state-change"
),
),
)
cmd = "ifup"