mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 01:55:51 +00:00
[PR #11341/5b5f7e9e backport][stable-12] batch 1 - update Python idiom to 3.7 using pyupgrade (#11349)
batch 1 - update Python idiom to 3.7 using pyupgrade (#11341)
* batch 1 - update Python idiom to 3.7 using pyupgrade
* add changelog frag
* add changelog frag
(cherry picked from commit 5b5f7e9e64)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
41f815be57
commit
2d07481e64
19 changed files with 48 additions and 29 deletions
|
|
@ -163,7 +163,7 @@ def get_profile(params):
|
|||
else f"{os.getenv('HOME')}/.aliyun/config.json"
|
||||
)
|
||||
auth = {}
|
||||
with open(path, "r") as f:
|
||||
with open(path) as f:
|
||||
for pro in json.load(f)["profiles"]:
|
||||
if params["profile"] == pro["name"]:
|
||||
auth = pro
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue