Esempio n. 1
0
    def create_action_log(cls, task):
        from nailgun.objects import ActionLog

        try:
            create_kwargs = cls.prepare_action_log_kwargs(task)
            return ActionLog.create(create_kwargs)
        except Exception as e:
            logger.error("create_action_log failed: %s", six.text_type(e))
Esempio n. 2
0
    def create_action_log(cls, task):
        """Creates action log
        :param task: SqlAlchemy task object
        :return: SqlAlchemy action_log object
        """
        from nailgun.objects import ActionLog

        try:
            create_kwargs = cls.prepare_action_log_kwargs(task)
            return ActionLog.create(create_kwargs)
        except Exception as e:
            logger.error("create_action_log failed: %s", six.text_type(e))
Esempio n. 3
0
    def create_action_log(cls, task):
        """Creates action log
        :param task: SqlAlchemy task object
        :return: SqlAlchemy action_log object
        """
        from nailgun.objects import ActionLog

        try:
            create_kwargs = cls.prepare_action_log_kwargs(task)
            return ActionLog.create(create_kwargs)
        except Exception as e:
            logger.error("create_action_log failed: %s", six.text_type(e))
Esempio n. 4
0
 def create_action_log(cls, task):
     try:
         create_kwargs = cls.prepare_action_log_kwargs(task)
         return ActionLog.create(create_kwargs)
     except Exception as e:
         logger.error("create_action_log failed: %s", six.text_type(e))