def high(data, **kwargs):
 __pillar__.update(kwargs.get('pillar', {}))
 st_kwargs = __salt__.kwargs
 __opts__['grains'] = __grains__
 st_ = salt.client.ssh.state.SSHHighState(__opts__, __pillar__, __salt__, __context__['fileclient'])
 chunks = st_.state.compile_high_data(data)
 file_refs = salt.client.ssh.state.lowstate_file_refs(chunks, _merge_extra_filerefs(kwargs.get('extra_filerefs', ''), __opts__.get('extra_filerefs', '')))
 trans_tar = salt.client.ssh.state.prep_trans_tar(__opts__, __context__['fileclient'], chunks, file_refs, __pillar__, st_kwargs['id_'])
 trans_tar_sum = salt.utils.get_hash(trans_tar, __opts__['hash_type'])
 cmd = 'state.pkg {0}/salt_state.tgz pkg_sum={1} hash_type={2}'.format(__opts__['thin_dir'], trans_tar_sum, __opts__['hash_type'])
 single = salt.client.ssh.Single(__opts__, cmd, fsclient=__context__['fileclient'], minion_opts=__salt__.minion_opts, **st_kwargs)
 single.shell.send(trans_tar, '{0}/salt_state.tgz'.format(__opts__['thin_dir']))
 (stdout, stderr, _) = single.cmd_block()
 try:
  os.remove(trans_tar)
 except (OSError, IOError):
  pass
 try:
  return json.loads(stdout, object_hook=salt.utils.decode_dict)
 except Exception as e:
  log.error('JSON Render failed for: {0}\n{1}'.format(stdout, stderr))
  log.error(str(e))
 return stdout

def high ( data , ** kwargs ) : __pillar__ . update ( kwargs . get ( 'pillar' , { } ) ) st_kwargs = __salt__ . kwargs __opts__ [ 'grains' ] = __grains__ st_ = salt . client . ssh . state . SSHHighState ( __opts__ , __pillar__ , __salt__ , __context__ [ 'fileclient' ] ) chunks = st_ . state . compile_high_data ( data ) file_refs = salt . client . ssh . state . lowstate_file_refs ( chunks , _merge_extra_filerefs ( kwargs . get ( 'extra_filerefs' , '' ) , __opts__ . get ( 'extra_filerefs' , '' ) ) ) trans_tar = salt . client . ssh . state . prep_trans_tar ( __opts__ , __context__ [ 'fileclient' ] , chunks , file_refs , __pillar__ , st_kwargs [ 'id_' ] ) trans_tar_sum = salt . utils . get_hash ( trans_tar , __opts__ [ 'hash_type' ] ) cmd = 'state.pkg {0}/salt_state.tgz pkg_sum={1} hash_type={2}' . format ( __opts__ [ 'thin_dir' ] , trans_tar_sum , __opts__ [ 'hash_type' ] ) single = salt . client . ssh . Single ( __opts__ , cmd , fsclient = __context__ [ 'fileclient' ] , minion_opts = __salt__ . minion_opts , ** st_kwargs ) single . shell . send ( trans_tar , '{0}/salt_state.tgz' . format ( __opts__ [ 'thin_dir' ] ) ) ( stdout , stderr , _ ) = single . cmd_block ( ) try : os . remove ( trans_tar ) except ( OSError , IOError ) : pass try : return json . loads ( stdout , object_hook = salt . utils . decode_dict ) except Exception as e : log . error ( 'JSON Render failed for: {0}\n{1}' . format ( stdout , stderr ) ) log . error ( str ( e ) ) return stdout
execute the compound calls stored in a single set of high data this function is mostly intended for testing the state system and is not likely to be needed in everyday usage .