summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Client/Tools/RcUpdate.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-06 09:46:00 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-06 09:46:00 -0400
commitb0d0cce064a93efcc86c4abcc38314f3188f4c72 (patch)
tree120964f923e633a9456de782a47308a491c81100 /src/lib/Bcfg2/Client/Tools/RcUpdate.py
parent913d320ee02d5e16b61a14d97b2b1111d307d0d3 (diff)
downloadbcfg2-b0d0cce064a93efcc86c4abcc38314f3188f4c72.tar.gz
bcfg2-b0d0cce064a93efcc86c4abcc38314f3188f4c72.tar.bz2
bcfg2-b0d0cce064a93efcc86c4abcc38314f3188f4c72.zip
Revert "removed Bcfg2.Client.XML abstraction layer since we depend directly on lxml.etree"
This reverts commit 913d320ee02d5e16b61a14d97b2b1111d307d0d3.
Diffstat (limited to 'src/lib/Bcfg2/Client/Tools/RcUpdate.py')
-rw-r--r--src/lib/Bcfg2/Client/Tools/RcUpdate.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/RcUpdate.py b/src/lib/Bcfg2/Client/Tools/RcUpdate.py
index e2d7ccfb5..ddf9c1f2d 100644
--- a/src/lib/Bcfg2/Client/Tools/RcUpdate.py
+++ b/src/lib/Bcfg2/Client/Tools/RcUpdate.py
@@ -2,7 +2,7 @@
import os
import Bcfg2.Client.Tools
-import lxml.etree
+import Bcfg2.Client.XML
class RcUpdate(Bcfg2.Client.Tools.SvcTool):
@@ -77,7 +77,7 @@ class RcUpdate(Bcfg2.Client.Tools.SvcTool):
self.logger.debug('Found active services:')
self.logger.debug(allsrv)
specified = [srv.get('name') for srv in self.getSupportedEntries()]
- return [lxml.etree.Element('Service',
- type='rc-update',
- name=name)
+ return [Bcfg2.Client.XML.Element('Service',
+ type='rc-update',
+ name=name) \
for name in allsrv if name not in specified]