Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Deprecate the __utils__ dunder. #62191

Open
s0undt3ch opened this issue Jun 17, 2022 · 3 comments
Open

[FEATURE REQUEST] Deprecate the __utils__ dunder. #62191

s0undt3ch opened this issue Jun 17, 2022 · 3 comments
Labels
Deprecation Feature new functionality including changes to functionality and code refactors, etc.

Comments

@s0undt3ch
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

The __utils__ dunder(salt loader) tries to provide easy access to Salt's utility modules.

Issues with this approach:

Potential problems if we remove __utils__:

  • Utility functions aren't available in jinja templating for salt states.
    • They shouldn't, jinja uses it's own filters and Salt provides additional filters

Describe the solution you'd like
Completely remove support for __utils__

Describe alternatives you've considered
None.

@s0undt3ch s0undt3ch added Feature new functionality including changes to functionality and code refactors, etc. needs-triage labels Jun 17, 2022
@s0undt3ch s0undt3ch added this to the Sulphur v3006.0 milestone Jun 17, 2022
@OrangeDog
Copy link
Contributor

If it's being removed in 3006 then it needs to be deprecated in 3005.

@OrangeDog
Copy link
Contributor

There's a SEP for this: saltstack/salt-enhancement-proposals#66

@s0undt3ch
Copy link
Collaborator Author

If it's being removed in 3006 then it needs to be deprecated in 3005.

The deprecation period, sadly, needs to be longer.

s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 27, 2022
Implementation of saltstack/salt-enhancement-proposals#66

Fixes saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 27, 2022
…`` loader usage.

Refs saltstack#62191
Fixes saltstack#62222

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
@Ch3LL Ch3LL modified the milestones: Chlorine v3007.0, Argon v3008 May 23, 2023
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 6, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 6, 2023
…irtual__`

Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 6, 2023
…irtual__`

Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 6, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 6, 2023
…irtual__`

Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 6, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 7, 2023
…irtual__`

Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 7, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 9, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 10, 2023
…irtual__`

Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 10, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 12, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 12, 2023
…irtual__`

Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 12, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 14, 2023
…irtual__`

Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 14, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 14, 2023
…irtual__`

Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 14, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 15, 2023
…irtual__`

Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 15, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 16, 2023
…irtual__`

Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 16, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 17, 2023
…irtual__`

Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 17, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 17, 2023
…irtual__`

Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 17, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 19, 2023
…irtual__`

Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jun 19, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jul 8, 2023
…irtual__`

Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jul 8, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jul 14, 2023
…irtual__`

Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Jul 14, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Aug 3, 2023
…irtual__`

Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Aug 3, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Dec 14, 2023
…irtual__`

Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Dec 14, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Dec 15, 2023
…irtual__`

Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
s0undt3ch added a commit to s0undt3ch/salt that referenced this issue Dec 15, 2023
Refs saltstack#62191

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecation Feature new functionality including changes to functionality and code refactors, etc.
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

5 participants