Skip to content

Commit 55a860e

Browse files
caberoscaberos
authored andcommitted
Policy is not added when an AutoScale Group is created
1 parent 6b54d42 commit 55a860e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

SoftLayer/CLI/autoscale/create.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# :license: MIT, see LICENSE for more details.
33

44
import click
5-
from SoftLayer import utils
65

76
import SoftLayer
87
from SoftLayer.CLI import environment
@@ -67,11 +66,11 @@ def cli(env, **args):
6766
]
6867
policy_template = {
6968
'name': args['policy_name'],
70-
'policies': scale_actions
69+
'scaleActions': scale_actions
7170

7271
}
7372
policies = []
74-
73+
policies.append(policy_template)
7574
block = []
7675
number_disk = 0
7776
for guest_disk in args['disk']:
@@ -113,7 +112,7 @@ def cli(env, **args):
113112
'balancedTerminationFlag': False,
114113
'virtualGuestMemberTemplate': virt_template,
115114
'virtualGuestMemberCount': 0,
116-
'policies': policies.append(utils.clean_dict(policy_template)),
115+
'policies': policies,
117116
'terminationPolicyId': args['termination_policy']
118117
}
119118

0 commit comments

Comments
 (0)