We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49c2956 commit 4551ebfCopy full SHA for 4551ebf
hubblestack/extmods/grains/cloud_details.py
@@ -73,7 +73,7 @@ def _get_aws_details():
73
headers=aws_token_header, timeout=3, proxies=proxies)
74
if r.status_code == requests.codes.ok:
75
aws_extra['cloud_private_hostname'] = r.text
76
- for key in aws_extra.keys():
+ for key in list(aws_extra):
77
if not aws_extra[key]:
78
aws_extra.pop(key)
79
@@ -133,7 +133,7 @@ def _get_azure_details():
133
grain_name_mac = "cloud_interface_{0}_mac_address".format(counter)
134
azure_extra[grain_name_mac] = value['macAddress']
135
136
- for key in azure_extra:
+ for key in list(azure_extra):
137
if not azure_extra[key]:
138
azure_extra.pop(key)
139
0 commit comments