diff options
-rw-r--r-- | whatmaps/debiandistro.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/whatmaps/debiandistro.py b/whatmaps/debiandistro.py index 57846ef..84ab9c8 100644 --- a/whatmaps/debiandistro.py +++ b/whatmaps/debiandistro.py @@ -119,10 +119,10 @@ class DebianDistro(Distro): aptconfig = sys.stdin.readline() if not aptconfig or aptconfig == '\n': break - if aptconfig.startswith('Whatmaps::Enable-Restart=') and \ - aptconfig.strip().split('=', 1)[1].lower() in ["true", "1"]: - logging.debug("Service restarts enabled") - whatmaps_enabled = True + if (aptconfig.startswith('Whatmaps::Enable-Restart=') and + aptconfig.strip().split('=', 1)[1].lower() in ["true", "1"]): + logging.debug("Service restarts enabled") + whatmaps_enabled = True if not whatmaps_enabled: return None |