def _nodetool(cmd):
 nodetool = __salt__['config.option']('cassandra.nodetool')
 host = __salt__['config.option']('cassandra.host')
 return __salt__['cmd.run_stdout']('{0} -h {1} {2}'.format(nodetool, host, cmd))

def _nodetool ( cmd ) : nodetool = __salt__ [ 'config.option' ] ( 'cassandra.nodetool' ) host = __salt__ [ 'config.option' ] ( 'cassandra.host' ) return __salt__ [ 'cmd.run_stdout' ] ( '{0} -h {1} {2}' . format ( nodetool , host , cmd ) )
internal cassandra nodetool wrapper .