def take_action(self, parsed_args): for name in settings.bots.keys(): try: bot_destroy(name, parsed_args.force) self.log.info('%s has been destroyed' % name) except NotFound: pass except Exception as e: self.log.error(e)
def take_action(self, parsed_args): bot_destroy(parsed_args.bot, parsed_args.force) self.log.info('%s has been destroyed' % parsed_args.bot)