1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Adding GCE iteration to an if/elif/elif

This commit is contained in:
Luke Sneeringer 2014-07-22 12:33:05 -05:00
parent b19077e0a0
commit 37295a9c47

View File

@ -847,6 +847,9 @@ class InventorySourceOptions(BaseModel):
elif self.source == 'rax':
valid_regions = [x[0] for x in self.get_rax_region_choices()]
region_transform = lambda x: x.strip().upper()
elif self.source == 'gce':
valid_regions = [x[0] for x in self.get_gce_region_choices()]
region_transform = lambda x: x.strip().lower()
else:
return ''
all_region = region_transform('all')