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

systemd: Support 'None' as value for 'running' #327

Merged
merged 2 commits into from Feb 21, 2017
Merged

Conversation

vain
Copy link
Member

@vain vain commented Feb 21, 2017

We often have situations where we don't want bw to start or stop a
daemon. Maybe enable it, but don't force start/stop.

We often have situations where we don't want bw to start or stop a
daemon. Maybe enable it, but don't force start/stop.
if (
not isinstance(attributes.get(attribute, True), bool) and
not attributes.get(attribute, None) is None
):
Copy link
Member

Choose a reason for hiding this comment

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

if attributes.get(attribute, None) not in (True, False, None)

@trehn trehn merged commit 957e88f into master Feb 21, 2017
@trehn trehn deleted the systemd-running-none branch February 21, 2017 21:40
@trehn
Copy link
Member

trehn commented Feb 21, 2017

thx

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

2 participants