Skip to content

Commit 7646401

Browse files
Fixed AttributeError when attempting to destroy AWS instances
The provider argument provided is of type Providers enum which has no upper function. The error produced was AttributeError: 'Providers' object has no attribute 'upper' Ticket: ENT-13656 Changelog: title Co-authored-by: Ole Herman Schumacher Elgesem <4048546+olehermanse@users.noreply.github.com>
1 parent f69a26d commit 7646401

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cf_remote/commands.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,9 @@ def _delete_saved_group(vms_info, group_name):
546546

547547
def _get_cloud_vms(provider, creds, region, group):
548548
if creds is None:
549-
raise CFRExitError("Missing/incomplete {} credentials".format(provider.upper()))
549+
raise CFRExitError(
550+
"Missing/incomplete {} credentials".format(str(provider).upper())
551+
)
550552
driver = get_cloud_driver(provider, creds, region)
551553

552554
assert driver is not None

0 commit comments

Comments
 (0)