'Confirmation.'

@flow.StateHandler()
def Confirmation(self, responses):

    if responses.success:
        response = responses.First()
        self.Log('Execution    of    %s    %s    (return    value    %d,    ran    for    %f    seconds):', response.request.cmd, '    '.join(response.request.command_line), response.exit_status, (response.time_used / 1000000.0))
        try:
            logout = response.stdout[:100]
            if (len(response.stdout) > 100):
                logout += '...'
            logerr = response.stderr[:100]
            if (len(response.stderr) > 100):
                logerr += '...'
            self.Log('Output:    %s,    %s', logout, logerr)
        except ValueError:
            self.Log('Received    output    not    convertible    to    unicode.')
    else:
        self.Log('Execute    failed.')
