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:
Joseph Hall 2015-09-16 11:41:40 -06:00
commit 3e5ef0dc30

View file

@ -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