Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Policy is not added when an AutoScale Group is created #1637

Merged
merged 1 commit into from
May 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions SoftLayer/CLI/autoscale/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# :license: MIT, see LICENSE for more details.

import click
from SoftLayer import utils

import SoftLayer
from SoftLayer.CLI import environment
Expand Down Expand Up @@ -67,11 +66,11 @@ def cli(env, **args):
]
policy_template = {
'name': args['policy_name'],
'policies': scale_actions
'scaleActions': scale_actions

}
policies = []

policies.append(policy_template)
block = []
number_disk = 0
for guest_disk in args['disk']:
Expand Down Expand Up @@ -113,7 +112,7 @@ def cli(env, **args):
'balancedTerminationFlag': False,
'virtualGuestMemberTemplate': virt_template,
'virtualGuestMemberCount': 0,
'policies': policies.append(utils.clean_dict(policy_template)),
'policies': policies,
'terminationPolicyId': args['termination_policy']
}

Expand Down