Skip to content

Commit

Permalink
azure-pro: fix detection of DatasourceAzureNet as azure on trusty
Browse files Browse the repository at this point in the history
  • Loading branch information
blackboxsw authored and patriciadomin committed Feb 27, 2020
1 parent b3b720d commit 2124e92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion uaclient/clouds/identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


# Mapping of datasource names to cloud-id responses. Trusty compat with Xenial+
DATASOURCE_TO_CLOUD_ID = {"ec2": "aws"}
DATASOURCE_TO_CLOUD_ID = {"azurenet": "azure", "ec2": "aws"}


def get_cloud_type_from_result_file(
Expand Down
1 change: 1 addition & 0 deletions uaclient/clouds/tests/test_identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class TestGetCloudTypeFromResultFile:
("DataSourceSomeTHING", "something"),
("DaTaSoUrCeMiNe", "mine"),
("DataSourceEc2", "aws"),
("DataSourceAzureNet", "azure"),
("DataSourceEc2Lookalike", "ec2lookalike"),
),
)
Expand Down

0 comments on commit 2124e92

Please sign in to comment.