Simplify self.arguments logic.

Strange logic pointed out by @jarmani, thanks!
reviewable/pr18780/r1
Patrik Lundin 10 years ago committed by Jonathan Armani
parent 924cf20cf8
commit e463400412

@ -1000,7 +1000,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

Loading…
Cancel
Save