コード例 #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]