mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #27166 from rallytime/fix-27100
Allow a full-query for EC2, even if there are no profiles defined
This commit is contained in:
commit
3e5ef0dc30
1 changed files with 5 additions and 0 deletions
|
@ -2939,6 +2939,11 @@ def list_nodes_full(location=None, call=None):
|
|||
get_location(vm_) for vm_ in six.itervalues(__opts__['profiles'])
|
||||
if _vm_provider_driver(vm_)
|
||||
)
|
||||
# If there aren't any profiles defined for EC2, check
|
||||
# the provider config file, or use the default location.
|
||||
if not locations:
|
||||
locations = [get_location()]
|
||||
|
||||
for loc in locations:
|
||||
ret.update(_list_nodes_full(loc))
|
||||
return ret
|
||||
|
|
Loading…
Add table
Reference in a new issue