diff --git a/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/launch-instance-model.service.js b/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/launch-instance-model.service.js index b6ba3a0ca2..2f819e5938 100644 --- a/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/launch-instance-model.service.js +++ b/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/launch-instance-model.service.js @@ -322,15 +322,6 @@ function onGetSecurityGroups(data) { model.securityGroups.length = 0; push.apply(model.securityGroups, data.data.items); - // set initial default - if (model.newInstanceSpec.security_groups.length === 0 && - model.securityGroups.length > 0) { - model.securityGroups.forEach(function (securityGroup) { - if (securityGroup.name === 'default') { - model.newInstanceSpec.security_groups.push(securityGroup); - } - }); - } } function setFinalSpecSecurityGroups(finalSpec) { diff --git a/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/security-groups/security-groups.html b/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/security-groups/security-groups.html index 3f0986b19b..82a3f77cd7 100644 --- a/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/security-groups/security-groups.html +++ b/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/security-groups/security-groups.html @@ -9,7 +9,7 @@ limits="ctrl.tableLimits"> - +