mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixed named external_ip reservation/re-use code.
When using a named external_ip, an exception was thrown every time. Updated the __create_orget_address call and return variable to use the correct variable.
This commit is contained in:
parent
fa3f474de9
commit
26774e2323
1 changed files with 1 additions and 1 deletions
|
@ -2043,7 +2043,7 @@ def create(vm_=None, call=None):
|
|||
external_ip = None
|
||||
else:
|
||||
region = '-'.join(kwargs['location'].name.split('-')[:2])
|
||||
kwargs['external_ip'] = __create_orget_address(conn, kwargs['external_ip'], region)
|
||||
external_ip = __create_orget_address(conn, external_ip, region)
|
||||
kwargs['external_ip'] = external_ip
|
||||
vm_['external_ip'] = external_ip
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue