def f(session): vms = [ rec['uuid'] for ref, rec in six.iteritems(fake.get_all_records('VM')) if rec['is_control_domain'] ] return vms[0]
def f(session): vms = [rec['uuid'] for rec in fake.get_all_records('VM').values() if rec['is_control_domain']] return vms[0]
def f(session): vms = [rec['uuid'] for ref, rec in six.iteritems(fake.get_all_records('VM')) if rec['is_control_domain']] return vms[0]