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 TypeError during rbenv ruby installation when rbenv is not found #44900

Merged
merged 2 commits into from
Dec 14, 2017

Conversation

xuhcc
Copy link
Contributor

@xuhcc xuhcc commented Dec 10, 2017

What does this PR do?

This PR fixes the TypeError: 'bool' object has no attribute '__getitem__' error during execution of rbenv.installed state. Error occurred when salt couldn't find rbenv. Now state execution finishes with "Failed to install ruby" message in that case.

What issues does this PR fix or reference?

Related to #44811.

Tests written?

No

Commits signed with GPG?

No

@gtmanfred
Copy link
Contributor

Would you change this PR to be against the oldest branch that this bug is present in? Should be 2016.11 if it is present in that release.

https://docs.saltstack.com/en/latest/topics/development/contributing.html#main-release-branches

Thanks,
Daniel

@xuhcc
Copy link
Contributor Author

xuhcc commented Dec 11, 2017

@gtmanfred

This error occurs on 2017.7.2 and also on "develop" branch. I didn't test older releases.

@xuhcc xuhcc changed the base branch from develop to 2017.7.2 December 11, 2017 09:24
@xuhcc xuhcc changed the base branch from 2017.7.2 to develop December 11, 2017 09:25
@gtmanfred
Copy link
Contributor

gtmanfred commented Dec 11, 2017

Then can you move the PR to be against the 2017.7 branch?

You may have to move the commit over to that branch manually.

If you are not able to do that, we can back port it, but for future reference, PRs for bugs should be opened against the oldest supported release that the bug is present in.

Thanks,
Daniel

@xuhcc xuhcc changed the base branch from develop to 2017.7.2 December 11, 2017 18:11
@xuhcc xuhcc changed the base branch from 2017.7.2 to 2017.7 December 11, 2017 18:14
@xuhcc
Copy link
Contributor Author

xuhcc commented Dec 11, 2017

@gtmanfred

PR updated, based on 2017.7 now.

Copy link
Contributor

@rallytime rallytime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome @xuhcc!

Thank you for submitting this fix.

@rallytime rallytime merged commit c4f0894 into saltstack:2017.7 Dec 14, 2017
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.

3 participants