Пример #1
0
 def save_cpu_pools(self):
     cpu_pool_records = dict([
         (cpu_pool_uuid,
          XendAPIStore.get(cpu_pool_uuid,
                           XendCPUPool.getClass()).get_record())
         for cpu_pool_uuid in XendCPUPool.get_all_managed()
     ])
     self.state_store.save_state(XendCPUPool.getClass(), cpu_pool_records)
Пример #2
0
 def save_cpu_pools(self):
     cpu_pool_records = dict([(cpu_pool_uuid, XendAPIStore.get(
                 cpu_pool_uuid, XendCPUPool.getClass()).get_record())
                 for cpu_pool_uuid in XendCPUPool.get_all_managed()])
     self.state_store.save_state(XendCPUPool.getClass(), cpu_pool_records)