Skip to content

Commit 41a74b1

Browse files
committed
Appease flake8 (removing 1 defect)
Signed-off-by: Matthias Büchse <[email protected]>
1 parent 71915a5 commit 41a74b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/iaas/volume-backup/volume-backup-tester.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def wait_for_resource(
4545
seconds_waited += 1
4646
if seconds_waited >= timeout:
4747
raise RuntimeError(
48-
f"Timed out after {seconds_waited} s: waiting for {resource_type} {resource_id} "
48+
f"Timed out after {seconds_waited} s: waiting for resource {resource_id} "
4949
f"to be in status {expected_status} (current: {resource and resource.status})"
5050
)
5151
resource = get_func(resource_id)
@@ -184,7 +184,7 @@ def cleanup(conn: openstack.connection.Connection, prefix=DEFAULT_PREFIX,
184184
logging.debug("traceback", exc_info=True)
185185
logging.warning(str(e))
186186
cleanup_issues += 1
187-
187+
188188
if cleanup_issues:
189189
logging.info(
190190
f"Some resources with the '{prefix}' prefix were not cleaned up!"
@@ -248,7 +248,7 @@ def main():
248248

249249
with openstack.connect(cloud, password=password) as conn:
250250
if not cleanup(conn, prefix=args.prefix, timeout=args.timeout):
251-
raise RuntimeError(f"Initial cleanup failed")
251+
raise RuntimeError("Initial cleanup failed")
252252
if args.cleanup_only:
253253
logging.info("Cleanup-only run finished.")
254254
return

0 commit comments

Comments
 (0)