mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
import salt._compat
This commit is contained in:
parent
96842191c7
commit
f02ed6ad47
1 changed files with 2 additions and 1 deletions
|
@ -24,6 +24,7 @@ import salt
|
|||
import salt.utils
|
||||
import salt.utils.cloud
|
||||
import salt.config
|
||||
import salt._compat
|
||||
|
||||
# Set up logging
|
||||
log = logging.getLogger(__name__)
|
||||
|
@ -202,7 +203,7 @@ def get_base(**kwargs):
|
|||
proto = salt._compat.urlparse(image).scheme
|
||||
img_tar = __salt__['cp.cache_file'](image)
|
||||
img_name = os.path.basename(img_tar)
|
||||
hash_ = salt.util.get_hash(
|
||||
hash_ = salt.utils.get_hash(
|
||||
img_tar,
|
||||
__salt__['config.option']('hash_type'))
|
||||
name = '__base_{0}_{1}_{2}'.format(proto, img_name, hash_)
|
||||
|
|
Loading…
Add table
Reference in a new issue