Skip to content

Commit

Permalink
pass hash and hash type into state.pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
thatch45 committed Oct 12, 2013
1 parent bab9277 commit c6d34f1
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions salt/client/ssh/wrapper/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ def sls(mods, env='base', test=None, exclude=None, **kwargs):
chunks,
file_refs)
trans_tar_sum = salt.utils.get_hash(trans_tar, __opts__['hash_type'])
cmd = 'state.pkg /tmp/.salt/salt_state.tgz test={0} pkg_sum={1}'.format(
cmd = 'state.pkg /tmp/.salt/salt_state.tgz test={0} pkg_sum={1} hash_type={2}'.format(
test,
trans_tar_sum)
trans_tar_sum,
__opts__['hash_type'])
single = salt.client.ssh.Single(
__opts__,
cmd,
Expand Down Expand Up @@ -89,8 +90,9 @@ def low(data):
chunks,
file_refs)
trans_tar_sum = salt.utils.get_hash(trans_tar, __opts__['hash_type'])
cmd = 'state.pkg /tmp/.salt/salt_state.tgz pkg_sum={0}'.format(
trans_tar_sum)
cmd = 'state.pkg /tmp/.salt/salt_state.tgz pkg_sum={0} hash_type={1}'.format(
trans_tar_sum,
__opts__['hash_type'])
single = salt.client.ssh.Single(
__opts__,
cmd,
Expand Down Expand Up @@ -121,8 +123,9 @@ def high(data):
chunks,
file_refs)
trans_tar_sum = salt.utils.get_hash(trans_tar, __opts__['hash_type'])
cmd = 'state.pkg /tmp/.salt/salt_state.tgz pkg_sum={0}'.format(
trans_tar_sum)
cmd = 'state.pkg /tmp/.salt/salt_state.tgz pkg_sum={0} hash_type={1}'.format(
trans_tar_sum,
__opts__['hash_type'])
single = salt.client.ssh.Single(
__opts__,
cmd,
Expand Down Expand Up @@ -155,9 +158,10 @@ def highstate(test=None, **kwargs):
chunks,
file_refs)
trans_tar_sum = salt.utils.get_hash(trans_tar, __opts__['hash_type'])
cmd = 'state.pkg /tmp/.salt/salt_state.tgz test={0} pkg_sum={1}'.format(
cmd = 'state.pkg /tmp/.salt/salt_state.tgz test={0} pkg_sum={1} hash_type={2}'.format(
test,
trans_tar_sum)
trans_tar_sum,
__opts__['hash_type'])
single = salt.client.ssh.Single(
__opts__,
cmd,
Expand Down Expand Up @@ -194,9 +198,10 @@ def top(topfn, test=None, **kwargs):
chunks,
file_refs)
trans_tar_sum = salt.utils.get_hash(trans_tar, __opts__['hash_type'])
cmd = 'state.pkg /tmp/.salt/salt_state.tgz test={0} pkg_sum={1}'.format(
cmd = 'state.pkg /tmp/.salt/salt_state.tgz test={0} pkg_sum={1} hash_type={2}'.format(
test,
trans_tar_sum)
trans_tar_sum,
__opts__['hash_type'])
single = salt.client.ssh.Single(
__opts__,
cmd,
Expand Down

0 comments on commit c6d34f1

Please sign in to comment.