def _execute(cmd, error_msg, **kwargs):
    try:
        stdout, stderr = utils.execute(*cmd, **kwargs)
    except (processutils.ProcessExecutionError, __HOLE__) as e:
        LOG.error(error_msg)
        raise errors.ISCSICommandError(error_msg, e.exit_code,
                                       e.stdout, e.stderr)
dataset/ETHPy150Open openstack/ironic-python-agent/ironic_python_agent/extensions/iscsi.py/_execute