Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Commit

Permalink
Fix boolean to nssm command line required input formar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenzo Delgado committed May 20, 2018
1 parent 890073d commit 12d6986
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nssm/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ def configure(self, config):

if isinstance(value, AbstractEnum):
value = value.value
elif isinstance(value, bool):
value = 1 if value else 0

Wrapper.command("set", self.name, PARAM_MAP[param], value)

Expand Down

0 comments on commit 12d6986

Please sign in to comment.