Skip to content

Commit 3d7a3f8

Browse files
tyllrichm
authored andcommitted
style: Use conscious language for profile list
Signed-off-by: Till Maas <opensource@till.name>
1 parent 22cc86b commit 3d7a3f8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

library/network_connections.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2402,19 +2402,19 @@ def run_action_absent(self, idx):
24022402
profile_uuids = set()
24032403

24042404
if name:
2405-
black_list_names = []
2405+
kept_profiles = []
24062406
else:
24072407
# Delete all profiles except explicitly included
2408-
black_list_names = ArgUtil.connection_get_non_absent_names(self.connections)
2408+
kept_profiles = ArgUtil.connection_get_non_absent_names(self.connections)
24092409

24102410
# Keep loopback device too. Deleting it would trigger a 'changed' state
24112411
# every time the playbook is run as the device is recreated
2412-
black_list_names.add("lo")
2412+
kept_profiles.add("lo")
24132413

24142414
for nm_profile in self._nm_provider.get_connections():
24152415
if name and nm_profile.get_id() != name:
24162416
continue
2417-
if nm_profile.get_id() not in black_list_names:
2417+
if nm_profile.get_id() not in kept_profiles:
24182418
profile_uuids.add(nm_profile.get_uuid())
24192419

24202420
if not profile_uuids:

0 commit comments

Comments
 (0)