Skip to content

Commit

Permalink
Merge pull request #979 from blackboxsw/merge/trusty-azure-detection
Browse files Browse the repository at this point in the history
azure-pro: fix detection of DatasourceAzureNet as azure on trusty
  • Loading branch information
blackboxsw committed Feb 5, 2020
2 parents 21c00b4 + 6cca259 commit 49abe3d
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
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
Expand Up @@ -21,6 +21,7 @@ class TestGetCloudTypeFromResultFile:
("DataSourceSomeTHING", "something"),
("DaTaSoUrCeMiNe", "mine"),
("DataSourceEc2", "aws"),
("DataSourceAzureNet", "azure"),
("DataSourceEc2Lookalike", "ec2lookalike"),
),
)
Expand Down

0 comments on commit 49abe3d

Please sign in to comment.