mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
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
This commit is contained in:
@@ -292,7 +292,7 @@ class ManageIQPolicies:
|
||||
|
||||
# make a list of assigned full profile names strings
|
||||
# e.g. ['openscap profile', ...]
|
||||
assigned_profiles_set = set(profile["profile_name"] for profile in assigned_profiles)
|
||||
assigned_profiles_set = {profile["profile_name"] for profile in assigned_profiles}
|
||||
|
||||
for profile in profiles:
|
||||
assigned = profile.get("name") in assigned_profiles_set
|
||||
@@ -398,7 +398,7 @@ class ManageIQTags:
|
||||
|
||||
# make a list of assigned full tag names strings
|
||||
# e.g. ['/managed/environment/prod', ...]
|
||||
assigned_tags_set = set(tag["full_name"] for tag in assigned_tags)
|
||||
assigned_tags_set = {tag["full_name"] for tag in assigned_tags}
|
||||
|
||||
for tag in tags:
|
||||
assigned = self.full_tag_name(tag) in assigned_tags_set
|
||||
|
||||
Reference in New Issue
Block a user