add undisable attribut to service
This commit is contained in:
@ -54,6 +54,7 @@
|
||||
<!ATTLIST service engine (none|creole|jinja2) #IMPLIED>
|
||||
<!ATTLIST service target CDATA #IMPLIED>
|
||||
<!ATTLIST service type (service|mount|swap) "service">
|
||||
<!ATTLIST service undisable (True|False) "False">
|
||||
|
||||
<!ELEMENT ip (#PCDATA)>
|
||||
<!ATTLIST ip iplist CDATA #IMPLIED>
|
||||
|
@ -343,7 +343,7 @@ class RougailBaseTemplate:
|
||||
service_name = await service_obj.option.description()
|
||||
service_type = await service_obj.information.get('type', 'service')
|
||||
if await service_obj.option('activate').value.get() is False:
|
||||
if included is False:
|
||||
if included is False and not await service_obj.information.get('undisable', False):
|
||||
self.desactive_service(service_name, service_type)
|
||||
continue
|
||||
if not included:
|
||||
|
Reference in New Issue
Block a user