From a3b9fb58bfc1935dd49bdb284cf62d6ed9662909 Mon Sep 17 00:00:00 2001 From: KIKUCHI Koichiro Date: Wed, 22 Jul 2015 19:10:05 +0900 Subject: [PATCH] Fix service enabled check failure on FreeBSD --- system/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/service.py b/system/service.py index 4336b7a7775..8caece20143 100644 --- a/system/service.py +++ b/system/service.py @@ -988,7 +988,7 @@ class FreeBsdService(Service): try: return self.service_enable_rcconf() - except: + except Exception: self.module.fail_json(msg='unable to set rcvar') def service_control(self):