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

Bugfix: Prevent continuous restart, if a dependency wasn't installed #35339

Merged
merged 1 commit into from
Aug 11, 2016

Conversation

isbm
Copy link
Contributor

@isbm isbm commented Aug 10, 2016

What does this PR do?

Maintenance bugfix.

What issues does this PR fix or reference?

Prevents minion restart forever if a dependency module wasn't installed by a various reasons.

Tests written?

No

@@ -81,14 +81,14 @@ def suicide_when_without_parent(parent_pid):
try:
minion = salt.cli.daemons.Minion()
minion.start()
except (ImportError, SystemExit) as exc:
log.error(exc)
Copy link
Contributor

Choose a reason for hiding this comment

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

We no longer want to set the restart flag to False here if we hit a SystemExit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cachedout it is already False. We do not want set it to True. 😉

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, I didn't read up enough. I do like it being explicit but you're right. Thanks!

@cachedout cachedout added the Pending-Discussion The issue or pull request needs more discussion before it can be closed or merged label Aug 10, 2016
@cachedout
Copy link
Contributor

@isbm
Copy link
Contributor Author

isbm commented Aug 10, 2016

@cachedout This is not my lint problem, as this code is already there. Should I extra-fix this in this PR?

@cachedout
Copy link
Contributor

I think it's complaining because L86 is now an ancestor to what you added on L84, so yes, this was caused by your change. If you could please clean it up then we'll get this in. Thanks. :]

@isbm isbm force-pushed the isbm-2015.8-minion-importerror-fix branch from 590ff2c to 12af60b Compare August 11, 2016 10:18
@isbm
Copy link
Contributor Author

isbm commented Aug 11, 2016

@cachedout here you go. 😉

@thatch45 thatch45 merged commit 9ea7a34 into saltstack:2015.8 Aug 11, 2016
@isbm isbm deleted the isbm-2015.8-minion-importerror-fix branch August 31, 2016 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pending-Discussion The issue or pull request needs more discussion before it can be closed or merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants