@logging.log_task_wrapper(LOG.info, _('Enter context: `ClusterTemplate`'))
def setup(self):
    for (user, tenant_id) in rutils.iterate_per_tenants(self.context['users']):
        magnum_scenario = magnum_utils.MagnumScenario({'user': user, 'task': self.context['task'], 'owner_id': self.context['owner_id'], 'config': {'api_versions': self.context['config'].get('api_versions', [])}})
        cluster_template = magnum_scenario._create_cluster_template(**self.config)
        ct_uuid = cluster_template.uuid
        self.context['tenants'][tenant_id]['cluster_template'] = ct_uuid
@logging.log_task_wrapper(LOG.info, _('Enter context: `ClusterTemplate`'))
def setup(self):
    for (user, tenant_id) in rutils.iterate_per_tenants(self.context['users']):
        magnum_scenario = magnum_utils.MagnumScenario({'user': user, 'task': self.context['task'], 'owner_id': self.context['owner_id'], 'config': {'api_versions': self.context['config'].get('api_versions', [])}})
        cluster_template = magnum_scenario._create_cluster_template(**self.config)
        ct_uuid = cluster_template.uuid
        self.context['tenants'][tenant_id]['cluster_template'] = ct_uuid