mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Py3 compatibility fixes.
This commit is contained in:
parent
e4467f59e2
commit
47412fc10e
@ -2,9 +2,9 @@
|
||||
'''
|
||||
Minion side functions for salt-cp
|
||||
'''
|
||||
from __future__ import absolute_import
|
||||
|
||||
# Import python libs
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
import logging
|
||||
import fnmatch
|
||||
@ -17,6 +17,9 @@ import salt.crypt
|
||||
import salt.transport
|
||||
from salt.exceptions import CommandExecutionError
|
||||
|
||||
# Import 3rd-party libs
|
||||
import salt.ext.six as six
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@ -37,7 +40,7 @@ def recv(files, dest):
|
||||
It does not work via the CLI.
|
||||
'''
|
||||
ret = {}
|
||||
for path, data in files.items():
|
||||
for path, data in six.iteritems(files):
|
||||
if os.path.basename(path) == os.path.basename(dest) \
|
||||
and not os.path.isdir(dest):
|
||||
final = dest
|
||||
|
Loading…
Reference in New Issue
Block a user