Merge "[Sahara] Fixed copy nodegroup template when sec groups missing"

This commit is contained in:
Jenkins 2015-02-05 17:56:52 +00:00 committed by Gerrit Code Review
commit 9cc01e2780
1 changed files with 3 additions and 2 deletions

View File

@ -70,8 +70,9 @@ class CopyNodegroupTemplate(create_flow.ConfigureNodegroupTemplate):
s_fields["security_autogroup"].initial = template.auto_security_group
s_fields["security_groups"].initial = dict(
[(sg, sg) for sg in template.security_groups])
if template.security_groups:
s_fields["security_groups"].initial = dict(
[(sg, sg) for sg in template.security_groups])
processes_dict = dict()
try: