Beispiel #1
0
 def update_system_info_from_instance(self, system, instance_type):
     """
     Update the features of the system with the information of the instance_type
     """
     if instance_type:
         LibCloudCloudConnector.update_system_info_from_instance(self, system, instance_type)
         if instance_type.vcpus:
             system.addFeature(
                 Feature("cpu.count", "=", instance_type.vcpus), conflict="me", missing="other")
Beispiel #2
0
 def update_system_info_from_instance(self, system, instance_type):
     """
     Update the features of the system with the information of the instance_type
     """
     if instance_type:
         LibCloudCloudConnector.update_system_info_from_instance(
             self, system, instance_type)
         if instance_type.vcpus:
             system.addFeature(
                 Feature("cpu.count", "=", instance_type.vcpus), conflict="me", missing="other")
Beispiel #3
0
 def update_system_info_from_instance(system, instance_type):
     """
     Update the features of the system with the information of the instance_type
     """
     if isinstance(instance_type, NodeSize):
         LibCloudCloudConnector.update_system_info_from_instance(
             system, instance_type)
         if 'guestCpus' in instance_type.extra:
             system.addFeature(Feature("cpu.count", "=",
                                       instance_type.extra['guestCpus']),
                               conflict="other",
                               missing="other")