mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Simplify self.arguments logic.
Strange logic pointed out by @jarmani, thanks!
This commit is contained in:
@@ -1043,7 +1043,7 @@ class OpenBsdService(Service):
|
||||
|
||||
if self.enable:
|
||||
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)
|
||||
if rc == 0 and self.arguments == current_flags:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user