'Dumps the full command output to a logfile in error cases.'

def _log_cli_err(self, err):

    LOG.error("CLI    fail:    '%(cmd)s'    =    %(code)s\nout:    %(stdout)s\nerr:    %(stderr)s", {'cmd': err.cmd, 'code': err.exit_code, 'stdout': err.stdout, 'stderr': err.stderr})
