Skip to content

Commit

Permalink
Merge pull request #34822 from thatch45/ssh_fixes
Browse files Browse the repository at this point in the history
Fix salt-ssh state.high and state.low
  • Loading branch information
Mike Place committed Jul 21, 2016
2 parents 5d91139 + b5de492 commit acc9e31
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions salt/client/ssh/wrapper/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ def low(data, **kwargs):
__pillar__,
__salt__,
__context__['fileclient'])
err = st_.verify_data(data)
for chunk in chunks:
chunk['__id__'] = chunk['name'] if not chunk.get('__id__') else chunk['__id__']
err = st_.state.verify_data(data)
if err:
return err
file_refs = salt.client.ssh.state.lowstate_file_refs(
Expand Down Expand Up @@ -221,7 +223,7 @@ def high(data, **kwargs):
__pillar__,
__salt__,
__context__['fileclient'])
chunks = st_.state.compile_high_data(high)
chunks = st_.state.compile_high_data(data)
file_refs = salt.client.ssh.state.lowstate_file_refs(
chunks,
_merge_extra_filerefs(
Expand Down

0 comments on commit acc9e31

Please sign in to comment.