def ssh_run_cmd(sshkey_priv_path, user, host, subcmd):
    host = (user, host) % '%s@%s'
    sshcmd = ['ssh', '-o', 'LogLevel=ERROR',
              '-o', 'StrictHostKeyChecking=no',
              '-o', 'UserKnownHostsFile=/dev/null', '-i',
              sshkey_priv_path, host]
    cmd = sshcmd + subcmd

    p = Popen(cmd, stdout=PIPE)
    return p.communicate()
dataset/ETHPy150Open redhat-cip/software-factory/tests/functional/utils.py/ssh_run_cmd/swapped operands of `%`