def RunCommandOnHost(cmd, hostname, ssh_key):
  """ Executes a command via ssh and sends back the exit status code. """
  hostnames = [hostname]
  results = RunCommandOnHosts(cmd, hostnames, ssh_key)
  assert(len(results) == 1)
  return results[0]
def RunCommandOnHost ( cmd , hostname , ssh_key ) : hostnames = [ hostname ] results = RunCommandOnHosts ( cmd , hostnames , ssh_key ) assert ( len ( results ) == 1 ) return results [ 0 ]
Executes a command via ssh and sends back the exit status code.