boxidau / rax-autoscaler

Apache License 2.0
5 stars 2 forks source link

Cluster mode throws exception if there is only 1 server in autoscaling group #68

Closed boxidau closed 9 years ago

boxidau commented 9 years ago

Traceback (most recent call last): File "/usr/bin/autoscale", line 9, in load_entry_point('rax-autoscaler==0.2.13', 'console_scripts', 'autoscale')() File "/usr/lib/python2.6/site-packages/raxas/autoscale.py", line 343, in main rv = autoscale(args['as_group'], config_data, args) File "/usr/lib/python2.6/site-packages/raxas/autoscale.py", line 161, in autoscale rv = is_node_master(scalingGroup) File "/usr/lib/python2.6/site-packages/raxas/autoscale.py", line 90, in is_node_master masters.push(sg_state['active'][0]) AttributeError: 'list' object has no attribute 'push'