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

Fix salt.utils.decorators.Depends #31888

Merged
merged 2 commits into from Mar 15, 2016

Conversation

terminalmage
Copy link
Contributor

bebdc26 broke this decorator, because switching from getting the module to
getting a frame means dir(frame) does not contain the imported names. Those
now reside in frame.f_globals and frame.f_locals.

This pull request fixes the membership check to look in the proper location,
and adds an integration test to confirm correct behavior of the depends
decorator.

bebdc26 broke this decorator, because switching from getting the module
to getting a frame means dir(frame) does not contain the imported names.
Those now reside in frame.f_globals and frame.f_locals.

This commit fixes the membership check to look in the proper location.
@terminalmage
Copy link
Contributor Author

My new test has passed: http://166.78.178.63:8080/job/PR/job/salt-pr-rs-cent7-n/319/testReport/integration.loader.loader/LazyLoaderTest/test_depends/

However, the lint check doesn't look like it ran.

@justinta
Copy link

Go Go Jenkins!

1 similar comment
@justinta
Copy link

Go Go Jenkins!

rallytime pushed a commit that referenced this pull request Mar 15, 2016
@rallytime rallytime merged commit 1be9c91 into saltstack:2015.8 Mar 15, 2016
@terminalmage terminalmage deleted the fix-depends-decorator branch March 15, 2016 17:55
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.

None yet

3 participants