Skip to content

Commit

Permalink
Fix format string when calling log_err
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed Aug 29, 2023
1 parent a22ac63 commit 8045a68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ocw/lib/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def delete_vpc_subnets(self, vpc) -> None:
try:
interface.delete()
except ClientError as exc:
self.log_err("delete_vpc_subnets: %s", exc)
self.log_err("delete_vpc_subnets: {}", exc)

Check warning on line 179 in ocw/lib/ec2.py

View check run for this annotation

Codecov / codecov/patch

ocw/lib/ec2.py#L179

Added line #L179 was not covered by tests
continue
if self.dry_run:
self.log_info(f'Deletion of {subnet} skipped due to dry_run mode')
Expand Down
2 changes: 1 addition & 1 deletion ocw/lib/gce.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def list_zones(self, region) -> list:
)
return [basename(z) for z in region["zones"]]
except (KeyError, HttpError) as exc:
self.log_err("list_zones: %s", exc)
self.log_err("list_zones: {}", exc)

Check warning on line 103 in ocw/lib/gce.py

View check run for this annotation

Codecov / codecov/patch

ocw/lib/gce.py#L103

Added line #L103 was not covered by tests
return []

def delete_instance(self, instance_id, zone) -> None:
Expand Down

0 comments on commit 8045a68

Please sign in to comment.