Skip to content

Commit

Permalink
fix black issue
Browse files Browse the repository at this point in the history
fix black issue
  • Loading branch information
stanley31huang committed Sep 4, 2024
1 parent f46fb3e commit 8fac712
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions providers/base/bin/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@
import tempfile
import threading
from subprocess import (
CalledProcessError, check_call, check_output, STDOUT, DEVNULL
CalledProcessError,
check_call,
check_output,
STDOUT,
DEVNULL,
)
from subprocess import run as sp_run
from contextlib import contextmanager, suppress
Expand Down Expand Up @@ -206,7 +210,7 @@ def extract_core_list(self, line):
"""Extract a list of CPU cores from a line of the form:
NUMA node# CPU(s): a-b[,c-d[,...]]"""
colon = line.find(":")
cpu_list = line[colon + 1:]
cpu_list = line[colon + 1 :]
core_list = []
for core_range in cpu_list.split(","):
# core_range should be of the form "a-b" or "a"
Expand Down Expand Up @@ -797,10 +801,10 @@ def get_network_ifaces():
logging.debug("Retrieve the network attribute for %s interface", iface)
network_if = Interface(iface)
network_info[iface.name] = {
"status": network_if.status,
"phys_switch_id": network_if.phys_switch_id,
"iflink": network_if.iflink,
"ifindex": network_if.ifindex,
"status": network_if.status,
"phys_switch_id": network_if.phys_switch_id,
"iflink": network_if.iflink,
"ifindex": network_if.ifindex,
}

return network_info
Expand Down

0 comments on commit 8fac712

Please sign in to comment.