mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #46482 from rongshengfang/fix-keyerror-in-instance_present
Fix KeyError in salt/states/boto_ec2.py
This commit is contained in:
commit
c7e05d3ff4
1 changed files with 2 additions and 0 deletions
|
@ -886,6 +886,8 @@ def instance_present(name, instance_name=None, instance_id=None, image_id=None,
|
|||
allocation_id=allocation_id, region=region, key=key,
|
||||
keyid=keyid, profile=profile)
|
||||
if r:
|
||||
if 'new' not in ret['changes']:
|
||||
ret['changes']['new'] = {}
|
||||
ret['changes']['new']['public_ip'] = ip
|
||||
else:
|
||||
ret['result'] = False
|
||||
|
|
Loading…
Add table
Reference in a new issue