def process_config_arch(self):
log.log(log.LOG_INFO, "Processing Architectures")
for arch in self.get_config_section('architecture'):
try:
self.validator.arch(arch)
except MultipleInvalid as e:
log.log(log.LOG_WARN, "Cannot create Architecture '{0}': YAML validation Error: {1}".format(arch['name'], e))
continue
try:
arch_id = self.fm.architectures.show(arch['name'])['id']
log.log(log.LOG_DEBUG, "Architecture '{0}' (id={1}) already present.".format(arch['name'], arch_id))
except:
log.log(log.LOG_INFO, "Create Architecture '{0}'".format(arch['name']))
self.fm.architectures.create( architecture = { 'name': arch['name'] } )
评论列表
文章目录