Fix attribute name for Auto Scale servers

This commit is contained in:
Jamie Hannaford 2015-05-08 14:05:16 +02:00
parent 8ec2673431
commit 8db564dcf7

View file

@ -262,8 +262,8 @@ def rax_asg(module, cooldown=300, disk_config=None, files={}, flavor=None,
# Launch Configuration Updates
lc = sg.get_launch_config()
lc_args = {}
if server_name != lc.get('name'):
lc_args['name'] = server_name
if server_name != lc.get('server_name'):
lc_args['server_name'] = server_name
if image != lc.get('image'):
lc_args['image'] = image