Skip to content

Prefix variables from defaults/main.yml with leapp_ for consistency#317

Merged
spetrosi merged 1 commit intoredhat-cop:mainfrom
spetrosi:prefix-simpler
Dec 18, 2025
Merged

Prefix variables from defaults/main.yml with leapp_ for consistency#317
spetrosi merged 1 commit intoredhat-cop:mainfrom
spetrosi:prefix-simpler

Conversation

@spetrosi
Copy link
Collaborator

@spetrosi spetrosi commented Dec 17, 2025

  1. Prefix variables that are not prefixed already.
  2. Edit variables that had leapp in names but not as prefix to use leapp_ as prefix.
  3. Assign old variables to new varnames if an old name is set for backward compatibility.
  4. Save variables with normal values (without the default filter for backward compatilibility) in a comment so that we can easily remove compatibility in future when needed. Say, in couple years when we are sure that no users have old deprecated variables set.

@spetrosi spetrosi marked this pull request as draft December 17, 2025 15:02
@richm
Copy link
Collaborator

richm commented Dec 17, 2025

Except for the __leapp_inhibitors question, and missing changelog fragment, lgtm

@spetrosi spetrosi force-pushed the prefix-simpler branch 3 times, most recently from fd22240 to b9f5e33 Compare December 17, 2025 15:53
@spetrosi
Copy link
Collaborator Author

[citest]

@spetrosi
Copy link
Collaborator Author

[citest]

@spetrosi spetrosi marked this pull request as ready for review December 17, 2025 17:25
@richm
Copy link
Collaborator

richm commented Dec 17, 2025

I'm working on debugging the el7 test failure - go ahead and merge this PR

1. Prefix variables that are not prefixed already.
2. Edit variables that had leapp in names but not as prefix to use
   leapp_ as prefix.
3. Assign old variables to new varnames if an old name is set for backward compatibility.
4. Save variables with normal values (without the default filter for backward compatilibility) in a comment so that we can easily remove compatibility in future when needed. Say, in couple years when we are sure that no users have old deprecated variables set.
@spetrosi spetrosi merged commit 5d753d6 into redhat-cop:main Dec 18, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants