示例#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]
示例#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]
示例#3
0
文件: stubs.py 项目: sebrandon1/nova
 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]