mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Simplify self.arguments logic.
Strange logic pointed out by @jarmani, thanks!
This commit is contained in:
parent
2b18e544f5
commit
8a6a4a7757
1 changed files with 1 additions and 1 deletions
|
@ -1043,7 +1043,7 @@ class OpenBsdService(Service):
|
||||||
|
|
||||||
if self.enable:
|
if self.enable:
|
||||||
action = "enable %s" % (self.name)
|
action = "enable %s" % (self.name)
|
||||||
if self.arguments or self.arguments != current_flags:
|
if self.arguments or current_flags:
|
||||||
action = action + " flags %s" % (self.arguments)
|
action = action + " flags %s" % (self.arguments)
|
||||||
if rc == 0 and self.arguments == current_flags:
|
if rc == 0 and self.arguments == current_flags:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue