mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Older versions of python-augeas need the path passed to aug.match to be a string.
This commit is contained in:
parent
a5c7639ecb
commit
cec7cb4dc3
1 changed files with 2 additions and 1 deletions
|
@ -43,6 +43,7 @@ except ImportError:
|
|||
# Import salt libs
|
||||
import salt.utils.args
|
||||
import salt.utils.data
|
||||
import salt.utils.stringutils
|
||||
from salt.exceptions import SaltInvocationError
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
@ -494,7 +495,7 @@ def ls(path, load_path=None): # pylint: disable=C0103
|
|||
def _match(path):
|
||||
''' Internal match function '''
|
||||
try:
|
||||
matches = aug.match(path)
|
||||
matches = aug.match(salt.utils.stringutils.to_str(path))
|
||||
except RuntimeError:
|
||||
return {}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue