mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Address xmltodict
import error on non windows platforms
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
6982af1023
commit
bdf8bb95ec
1 changed files with 3 additions and 2 deletions
|
@ -7,8 +7,6 @@ A module for working with the Windows Event log system.
|
|||
import collections
|
||||
import logging
|
||||
|
||||
import xmltodict
|
||||
|
||||
import salt.utils.platform
|
||||
import salt.utils.stringutils
|
||||
from salt.exceptions import CommandExecutionError
|
||||
|
@ -19,6 +17,9 @@ try:
|
|||
import win32evtlogutil
|
||||
import winerror
|
||||
|
||||
# Only windows needs this dependency at runtime
|
||||
import xmltodict
|
||||
|
||||
IMPORT_STATUS = True
|
||||
except ImportError:
|
||||
IMPORT_STATUS = False
|
||||
|
|
Loading…
Add table
Reference in a new issue