예제 #1
0
 def _get_cpu_xml(self):
     # Include CPU topology, if provided
     cpu_info = self.info.get('cpu_info')
     if cpu_info is not None:
         cpu_topo = cpu_info.get('topology')
     return get_cpu_xml(self.info.get('cpus'),
                        self.info.get('memory') << 10, cpu_topo)
예제 #2
0
 def _get_cpu_xml(self):
     # Include CPU topology, if provided
     cpu_info = self.info.get("cpu_info")
     if cpu_info is not None:
         cpu_topo = cpu_info.get("topology")
     return get_cpu_xml(self.info.get("cpus"), self.info.get("memory") << 10, cpu_topo)