Skip to content

Commit

Permalink
Use %s to format string
Browse files Browse the repository at this point in the history
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
  • Loading branch information
lolyu committed Jul 5, 2022
1 parent 082e26f commit 921c671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sonic-config-engine/minigraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1873,7 +1873,7 @@ def get_mux_cable_entries(ports, mux_cable_ports, active_active_ports, neighbors
is_active_active = port in active_active_ports
is_active_standby = port in mux_cable_ports
if is_active_active and is_active_standby:
print(f"Warning: skip {port} as it is defined as active-standby and actie-active", file=sys.stderr)
print("Warning: skip %s as it is defined as active-standby and actie-active" % port, file=sys.stderr)
continue
if not (is_active_active or is_active_standby):
continue
Expand All @@ -1897,7 +1897,7 @@ def get_mux_cable_entries(ports, mux_cable_ports, active_active_ports, neighbors

if is_active_active:
if redundancy_type is None or redundancy_type not in ("libra", "mixed"):
print(f"Warning: skip {port} as it is defined as active-active but with redundancy_type as {redundancy_type}", file=sys.stderr)
print("Warning: skip %s as it is defined as active-active but with redundancy_type as %s" % (port, redundancy_type), file=sys.stderr)
# continue
entry['cable_type'] = 'active-active'
entry.update(active_active_ports[port])
Expand Down

0 comments on commit 921c671

Please sign in to comment.