mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Only parse the source if we have one
This commit is contained in:
parent
c03a6fa9d1
commit
5fb75346ef
1 changed files with 1 additions and 1 deletions
|
@ -2758,9 +2758,9 @@ def get_managed(
|
|||
# Copy the file to the minion and templatize it
|
||||
sfn = ''
|
||||
source_sum = {}
|
||||
urlparsed_source = _urlparse(source)
|
||||
# if we have a source defined, lets figure out what the hash is
|
||||
if source:
|
||||
urlparsed_source = _urlparse(source)
|
||||
if urlparsed_source.scheme == 'salt':
|
||||
source_sum = __salt__['cp.hash_file'](source, saltenv)
|
||||
if not source_sum:
|
||||
|
|
Loading…
Add table
Reference in a new issue