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: