Beispiel #1
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]
Beispiel #2
0
 def f(session):
     vms = [rec['uuid'] for rec
            in fake.get_all_records('VM').values()
            if rec['is_control_domain']]
     return vms[0]
Beispiel #3
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]