mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #34075 from jfindlay/import_xml
modules.inspectlib.kiwiproc: import gate lxml
This commit is contained in:
commit
9da592a297
@ -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):
|
||||||
'''
|
'''
|
||||||
|
Loading…
Reference in New Issue
Block a user