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:
parent
b19077e0a0
commit
37295a9c47
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user