From 1f287c3b51b9552a536e2d7ff2202f26643deac1 Mon Sep 17 00:00:00 2001 From: gwen Date: Tue, 10 Sep 2024 10:17:36 +0200 Subject: [PATCH] cleaning --- src/rougail/user-data-environment/data.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rougail/user-data-environment/data.py b/src/rougail/user-data-environment/data.py index cf10a72..0df105c 100644 --- a/src/rougail/user-data-environment/data.py +++ b/src/rougail/user-data-environment/data.py @@ -80,8 +80,9 @@ class RougailUserDataEnvironment: # option_name = option.path() # this is used only for warning purposes - if option_name in unused_environment_var: - self.unused_environment_var.remove(option_name) + if option_name not in unused_environment_var: + return + self.unused_environment_var.remove(option_name) # let's parse the environment variables values option_bash_value = get_rougail_environment_dict()[option_name] if ismulti: