mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
_vm_provider_driver isn't needed anymore
We deprecated some of these names in 2017.7, and this function is no longer needed
This commit is contained in:
parent
dbee735f6e
commit
b7283bcc6f
1 changed files with 1 additions and 12 deletions
|
@ -3432,7 +3432,7 @@ def list_nodes_full(location=None, call=None):
|
|||
ret = {}
|
||||
locations = set(
|
||||
get_location(vm_) for vm_ in six.itervalues(__opts__['profiles'])
|
||||
if _vm_provider_driver(vm_)
|
||||
if vm_.get('driver') == 'ec2'
|
||||
)
|
||||
|
||||
# If there aren't any profiles defined for EC2, check
|
||||
|
@ -3447,17 +3447,6 @@ def list_nodes_full(location=None, call=None):
|
|||
return _list_nodes_full(location)
|
||||
|
||||
|
||||
def _vm_provider_driver(vm_):
|
||||
alias, driver = vm_['driver'].split(':')
|
||||
if alias not in __opts__['providers']:
|
||||
return None
|
||||
|
||||
if driver not in __opts__['providers'][alias]:
|
||||
return None
|
||||
|
||||
return driver == 'ec2'
|
||||
|
||||
|
||||
def _extract_name_tag(item):
|
||||
if 'tagSet' in item and item['tagSet'] is not None:
|
||||
tagset = item['tagSet']
|
||||
|
|
Loading…
Add table
Reference in a new issue