Merge pull request #34075 from jfindlay/import_xml

modules.inspectlib.kiwiproc: import gate lxml
This commit is contained in:
Thomas S Hatch 2016-06-17 09:36:08 -06:00 committed by GitHub
commit 9da592a297

View File

@ -14,15 +14,24 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# Import python libs
from __future__ import absolute_import
import os import os
import grp import grp
import pwd import pwd
from lxml import etree
from xml.dom import minidom from xml.dom import minidom
import platform import platform
import socket import socket
# Import salt libs
from salt.modules.inspectlib.exceptions import InspectorKiwiProcessorException from salt.modules.inspectlib.exceptions import InspectorKiwiProcessorException
# Import third party libs
try:
from lxml import etree
except ImportError:
from salt._compat import ElementTree as etree
class KiwiExporter(object): class KiwiExporter(object):
''' '''