Merge pull request #23669 from rallytime/bp-23586

Backport #23586 to 2015.5
This commit is contained in:
Justin Findlay 2015-05-13 12:27:11 -06:00
commit 0dad6be0fc

View file

@ -251,9 +251,9 @@ import salt.utils.templates
from salt.exceptions import CommandExecutionError
from salt.utils.serializers import yaml as yaml_serializer
from salt.utils.serializers import json as json_serializer
from salt.ext.six.moves import map
import salt.ext.six as six
from salt.ext.six import string_types, integer_types
from salt.ext.six.moves import zip_longest
log = logging.getLogger(__name__)
@ -658,7 +658,7 @@ def _unify_sources_and_hashes(source=None, source_hash=None,
return (True, '', [(source, source_hash)])
# Make a nice neat list of tuples exactly len(sources) long..
return True, '', list(map(None, sources, source_hashes[:len(sources)]))
return True, '', list(zip_longest(sources, source_hashes[:len(sources)]))
def _get_template_texts(source_list=None,