Skip to content

Commit

Permalink
move the state package into .salt directory
Browse files Browse the repository at this point in the history
  • Loading branch information
thatch45 authored and basepi committed Oct 14, 2013
1 parent 207213a commit b60af8a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions salt/client/ssh/wrapper/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ def sls(mods, env='base', test=None, exclude=None, **kwargs):
file_refs)
single = salt.client.ssh.Single(
__opts__,
'state.pkg /tmp/salt_state.tgz test={0}'.format(test),
'state.pkg /tmp/.salt/salt_state.tgz test={0}'.format(test),
**__salt__.kwargs)
single.shell.send(
trans_tar,
'/tmp/salt_state.tgz')
'/tmp/.salt/salt_state.tgz')
stdout, stderr = single.cmd_block()
return json.loads(stdout, object_hook=salt.utils.decode_dict)

Expand Down Expand Up @@ -86,11 +86,11 @@ def low(data):
file_refs)
single = salt.client.ssh.Single(
__opts__,
'state.pkg /tmp/salt_state.tgz',
'state.pkg /tmp/.salt/salt_state.tgz',
**__salt__.kwargs)
single.shell.send(
trans_tar,
'/tmp/salt_state.tgz')
'/tmp/.salt/salt_state.tgz')
stdout, stderr = single.cmd_block()
return json.loads(stdout, object_hook=salt.utils.decode_dict)

Expand All @@ -115,11 +115,11 @@ def high(data):
file_refs)
single = salt.client.ssh.Single(
__opts__,
'state.pkg /tmp/salt_state.tgz',
'state.pkg /tmp/.salt/salt_state.tgz',
**__salt__.kwargs)
single.shell.send(
trans_tar,
'/tmp/salt_state.tgz')
'/tmp/.salt/salt_state.tgz')
stdout, stderr = single.cmd_block()
return json.loads(stdout, object_hook=salt.utils.decode_dict)

Expand All @@ -146,11 +146,11 @@ def highstate(test=None, **kwargs):
file_refs)
single = salt.client.ssh.Single(
__opts__,
'state.pkg /tmp/salt_state.tgz test={0}'.format(test),
'state.pkg /tmp/.salt/salt_state.tgz test={0}'.format(test),
**__salt__.kwargs)
single.shell.send(
trans_tar,
'/tmp/salt_state.tgz')
'/tmp/.salt/salt_state.tgz')
stdout, stderr = single.cmd_block()
return json.loads(stdout, object_hook=salt.utils.decode_dict)

Expand Down Expand Up @@ -181,11 +181,11 @@ def top(topfn, test=None, **kwargs):
file_refs)
single = salt.client.ssh.Single(
__opts__,
'state.pkg /tmp/salt_state.tgz test={0}'.format(test),
'state.pkg /tmp/.salt/salt_state.tgz test={0}'.format(test),
**__salt__.kwargs)
single.shell.send(
trans_tar,
'/tmp/salt_state.tgz')
'/tmp/.salt/salt_state.tgz')
stdout, stderr = single.cmd_block()
return json.loads(stdout, object_hook=salt.utils.decode_dict)

Expand Down

0 comments on commit b60af8a

Please sign in to comment.