From f1d72ea00471d3620736707ce890a8e202d92dd3 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 14 Apr 2015 13:18:46 -0400 Subject: [PATCH] simplified bad if chain hopefully fixes #1136 --- system/service.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/system/service.py b/system/service.py index 2df509662ec..db0594fd9d4 100644 --- a/system/service.py +++ b/system/service.py @@ -703,14 +703,10 @@ class LinuxService(Service): # Check if we're already in the correct state service_enabled = self.get_systemd_service_enabled() - if self.enable and service_enabled: - self.changed = False - elif not self.enable and not service_enabled: - self.changed = False - elif not self.enable: - self.changed = False - if not self.changed: + # self.changed should already be true + if self.enable == service_enabled: + self.changed = False return #