2021-09-27 12:08:32 +02:00
|
|
|
From 22fe4809712dbc59ba2d8c3c2045f531f81bc517 Mon Sep 17 00:00:00 2001
|
2018-01-26 14:46:21 +01:00
|
|
|
From: Bo Maryniuk <bo@suse.de>
|
|
|
|
Date: Thu, 14 Dec 2017 16:21:40 +0100
|
|
|
|
Subject: [PATCH] Fix bsc#1065792
|
|
|
|
|
|
|
|
---
|
2021-09-27 12:08:32 +02:00
|
|
|
salt/states/service.py | 1 +
|
|
|
|
1 file changed, 1 insertion(+)
|
2018-01-26 14:46:21 +01:00
|
|
|
|
|
|
|
diff --git a/salt/states/service.py b/salt/states/service.py
|
2021-09-27 12:08:32 +02:00
|
|
|
index 536e64a430..27595f7703 100644
|
2018-01-26 14:46:21 +01:00
|
|
|
--- a/salt/states/service.py
|
|
|
|
+++ b/salt/states/service.py
|
2021-09-27 12:08:32 +02:00
|
|
|
@@ -78,6 +78,7 @@ def __virtual__():
|
2018-01-26 14:46:21 +01:00
|
|
|
Only make these states available if a service provider has been detected or
|
|
|
|
assigned for this minion
|
2021-01-08 13:41:50 +01:00
|
|
|
"""
|
2018-01-26 14:46:21 +01:00
|
|
|
+ __salt__._load_all()
|
2021-01-08 13:41:50 +01:00
|
|
|
if "service.start" in __salt__:
|
2018-01-26 14:46:21 +01:00
|
|
|
return __virtualname__
|
|
|
|
else:
|
|
|
|
--
|
2021-09-27 12:08:32 +02:00
|
|
|
2.33.0
|
2018-01-26 14:46:21 +01:00
|
|
|
|
|
|
|
|