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

Cannot set fail_on_error with run_simple #322

Closed
mikepack opened this issue Dec 6, 2015 · 10 comments
Closed

Cannot set fail_on_error with run_simple #322

mikepack opened this issue Dec 6, 2015 · 10 comments
Labels

Comments

@mikepack
Copy link

mikepack commented Dec 6, 2015

The logic here will always result in true. ie:

run_simple('cmd', false)
# leads to...
false || true #=> true
run_simple('cmd', true)
# leads to...
true || true #=> true

Sorry, don't have time to submit a PR right now, but wanted to report after upgrading to 0.11.x.

@ghost
Copy link

ghost commented Dec 7, 2015

@mikepack Yeah, thanks. Will have a look at this. Unfortunately I'm a little bit out of time as well. So it may take some time until I can fix that.

@mikepack
Copy link
Author

mikepack commented Dec 7, 2015

No problem. I worked around it by switching to the option hash style:

run_simple('cmd', fail_on_error: false)

@ghost
Copy link

ghost commented Dec 7, 2015

Ah. Ok. Then it's a bug I introduced with my last changes. Damn.

@ghost ghost added the bug label Dec 7, 2015
@mikepack
Copy link
Author

mikepack commented Dec 7, 2015

🍻 thanks for all your work on Aruba!

@ghost
Copy link

ghost commented Dec 8, 2015

:-)

@ghost
Copy link

ghost commented Dec 9, 2015

I hope I fixed the issue in master, can you please verify that?

@mikepack
Copy link
Author

mikepack commented Dec 9, 2015

Fixed!

@ghost
Copy link

ghost commented Dec 9, 2015

Ok. 0.11.2 is out now. Can you check that as well? Thanks a lot.

@ghost ghost closed this as completed Dec 9, 2015
@mikepack
Copy link
Author

Works like a charm.

@ghost
Copy link

ghost commented Dec 18, 2015

Great. Thanks for the feedback.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant