Include locations that size is available at size.extra
@@ -420,8 +420,10 @@ def _list_async(driver):
def _to_size(self, data):
cpus = data['specs']['cpus'][0].get('count')
+ regions = [region.get('href').strip('/facilities/')
+ for region in data.get('available_in')]
extra = {'description': data['description'], 'line': data['line'],
- 'cpus': cpus}
+ 'cpus': cpus, 'regions': regions}
ram = data['specs']['memory']['total']
disk = 0
