From 8a6a4a7757141e30f168c000224cd052f13e77a1 Mon Sep 17 00:00:00 2001 From: Patrik Lundin Date: Tue, 9 Sep 2014 16:12:47 +0200 Subject: [PATCH] Simplify self.arguments logic. Strange logic pointed out by @jarmani, thanks! --- lib/ansible/modules/system/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/service.py b/lib/ansible/modules/system/service.py index 75f2117f90a..ca7b2bad9e4 100644 --- a/lib/ansible/modules/system/service.py +++ b/lib/ansible/modules/system/service.py @@ -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