Merge pull request #36915 from rallytime/merge-2016.3

[2016.3] Merge forward from 2015.8 to 2016.3
This commit is contained in:
Nicole Thomas 2016-10-11 13:49:42 -06:00 committed by GitHub
commit b7f87e0aed
2 changed files with 8 additions and 1 deletions

View File

@ -1898,7 +1898,8 @@ def init(cwd,
separate_git_dir = str(separate_git_dir)
command.append('--separate-git-dir={0}'.format(separate_git_dir))
if shared is not None:
if isinstance(shared, six.integer_types):
if isinstance(shared, six.integer_types) \
and not isinstance(shared, bool):
shared = '0' + str(shared)
elif not isinstance(shared, six.string_types):
# Using lower here because booleans would be capitalized when

View File

@ -516,6 +516,12 @@ def wait_for_event(
'''
ret = {'name': name, 'changes': {}, 'comment': '', 'result': False}
if __opts__.get('test'):
ret['comment'] = \
'Orchestration would wait for event \'{0}\''.format(name)
ret['result'] = None
return ret
sevent = salt.utils.event.get_event(
node,
__opts__['sock_dir'],