mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #36915 from rallytime/merge-2016.3
[2016.3] Merge forward from 2015.8 to 2016.3
This commit is contained in:
commit
b7f87e0aed
@ -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
|
||||
|
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user