manage method in service
This commit is contained in:
parent
5a1c39e8a1
commit
822483ab70
2 changed files with 2 additions and 2 deletions
|
@ -113,7 +113,7 @@ class ServiceAnnotator:
|
||||||
|
|
||||||
def convert_service_to_family(self, service_name, service_family, service):
|
def convert_service_to_family(self, service_name, service_family, service):
|
||||||
for elttype, values in vars(service).items():
|
for elttype, values in vars(service).items():
|
||||||
if elttype in ['name', 'index']:
|
if elttype in ['name', 'index', 'method']:
|
||||||
continue
|
continue
|
||||||
family = self.objectspace.family()
|
family = self.objectspace.family()
|
||||||
family.name = elttype + 's'
|
family.name = elttype + 's'
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
|
|
||||||
<!ELEMENT service ((port* | tcpwrapper* | ip* | interface* | package* | file* | digitalcertificate*)*) >
|
<!ELEMENT service ((port* | tcpwrapper* | ip* | interface* | package* | file* | digitalcertificate*)*) >
|
||||||
<!ATTLIST service name CDATA #REQUIRED>
|
<!ATTLIST service name CDATA #REQUIRED>
|
||||||
<!ATTLIST service method (systemd|upstart|apache|network) "systemd">
|
<!ATTLIST service method (systemd|none) "systemd">
|
||||||
|
|
||||||
<!ELEMENT input (#PCDATA)>
|
<!ELEMENT input (#PCDATA)>
|
||||||
<!ELEMENT profile (#PCDATA)>
|
<!ELEMENT profile (#PCDATA)>
|
||||||
|
|
Loading…
Reference in a new issue