Skip to content

Commit

Permalink
Flake8 format fix for tox 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mreed8855 committed Sep 18, 2024
1 parent 1d09b4d commit 242367f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions providers/base/bin/virtualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,18 @@ def check_sriov_interfaces():
link_status[interface] = "offline"

Check warning on line 193 in providers/base/bin/virtualization.py

View check run for this annotation

Codecov / codecov/patch

providers/base/bin/virtualization.py#L193

Added line #L193 was not covered by tests
except IOError as e:
logging.error(

Check warning on line 195 in providers/base/bin/virtualization.py

View check run for this annotation

Codecov / codecov/patch

providers/base/bin/virtualization.py#L195

Added line #L195 was not covered by tests
f"Error reading from file in \
{device_path}: {e}"
"Error reading from file in {}: {}".format(
device_path, e
)
)
except ValueError as e:
logging.error(

Check warning on line 201 in providers/base/bin/virtualization.py

View check run for this annotation

Codecov / codecov/patch

providers/base/bin/virtualization.py#L200-L201

Added lines #L200 - L201 were not covered by tests
f"Error processing values for \
{device_path}: {e}"
"Error processing values for {}: {}".format(
device_path, e
)
)
except Exception as e:
logging.error(f"Failed to process interfaces: {e}")
logging.error("Failed to process interfaces: {}".format(e))

Check warning on line 207 in providers/base/bin/virtualization.py

View check run for this annotation

Codecov / codecov/patch

providers/base/bin/virtualization.py#L206-L207

Added lines #L206 - L207 were not covered by tests

if intel_device is not None:
return intel_device

Check warning on line 210 in providers/base/bin/virtualization.py

View check run for this annotation

Codecov / codecov/patch

providers/base/bin/virtualization.py#L210

Added line #L210 was not covered by tests
Expand Down

0 comments on commit 242367f

Please sign in to comment.