Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bschimke95 committed Oct 23, 2024
1 parent e450e3f commit e56f66c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/tests/test_util/harness/lxd.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,10 @@ def delete_instance(self, instance_id: str):
try:
# There are cases where the instance is not deleted properly and this command is stuck.
# A timeout prevents this.
run(["lxc", "rm", instance_id, "--force", "--debug"], timeout=60*5)
run(["lxc", "rm", instance_id, "--force", "--debug"], timeout=60 * 5)
except subprocess.CalledProcessError as e:
raise HarnessError(f"failed to delete instance {instance_id}") from e
except subprocess.TimeoutExpired as e:
except subprocess.TimeoutExpired:
LOG.warning("LXC container removal timed out.")
pass

Expand Down

0 comments on commit e56f66c

Please sign in to comment.