Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Freya Gustavsson <[email protected]>
  • Loading branch information
r0x0d and Venefilyn committed Sep 27, 2024
1 parent 517e870 commit f00df9d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions convert2rhel/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1129,11 +1129,10 @@ def warn_deprecated_env(env_name):
"""
if env_name not in os.environ:
# Nothing to do here.
return
return None

root_logger.warning(
"The environment variable {} is deprecated and is set to be removed on Convert2RHEL 2.4.0.\n"
"Please, use the configuration file instead."
"The environment variable {} is deprecated in favor of using a configuration file and will be removed in version Convert2RHEL 2.4.0."
)

return os.getenv(env_name, None)

0 comments on commit f00df9d

Please sign in to comment.