2
0
Эх сурвалжийг харах

Work around N/A as a potential vCPU value on AWS VMType

Enis Afgan 7 жил өмнө
parent
commit
e68d30fc1c

+ 4 - 1
cloudbridge/cloud/providers/aws/resources.py

@@ -183,7 +183,10 @@ class AWSVMType(BaseVMType):
 
     @property
     def vcpus(self):
-        return self._inst_dict.get('vCPU')
+        vcpus = self._inst_dict.get('vCPU')
+        if vcpus == 'N/A':
+            return None
+        return vcpus
 
     @property
     def ram(self):