mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 15:27:47 -02:30
Adding GCE iteration to an if/elif/elif
This commit is contained in:
@@ -847,6 +847,9 @@ class InventorySourceOptions(BaseModel):
|
|||||||
elif self.source == 'rax':
|
elif self.source == 'rax':
|
||||||
valid_regions = [x[0] for x in self.get_rax_region_choices()]
|
valid_regions = [x[0] for x in self.get_rax_region_choices()]
|
||||||
region_transform = lambda x: x.strip().upper()
|
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:
|
else:
|
||||||
return ''
|
return ''
|
||||||
all_region = region_transform('all')
|
all_region = region_transform('all')
|
||||||
|
|||||||
Reference in New Issue
Block a user