For example, in the following code from designate/central/service.py.
Line number 2 (get_domain) will return no domain for 'admin' tenant, as the current
tenant_id in the 'context' is admin tenant id, but the domain might be owned by some other
tenant who might not be an admin.
For example, in the following code from designate/ central/ service. py.
Line number 2 (get_domain) will return no domain for 'admin' tenant, as the current
tenant_id in the 'context' is admin tenant id, but the domain might be owned by some other
tenant who might not be an admin.
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= === recordset( self, context, domain_id, values):
1.def create_
2. domain = self.storage_ api.get_ domain( context, domain_id)
3. target = {
'domain_ id': domain_id,
'domain_ name': domain['name'],
'recordset _name': values['name'],
'tenant_ id': domain[ 'tenant_ id'],
}
4. policy. check(' create_ recordset' , context, target)
...... ======= ======= ======= ======= ======= ======= ======= ======= ==
=======