Merge "security group not mandatory to create instance"

This commit is contained in:
Jenkins 2015-12-07 13:31:32 +00:00 committed by Gerrit Code Review
commit cea58f2977
2 changed files with 1 additions and 10 deletions

View File

@ -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) {

View File

@ -9,7 +9,7 @@
limits="ctrl.tableLimits">
<!-- Security Groups Allocated -->
<allocated validate-number-min="1" ng-model="ctrl.tableData.allocated.length">
<allocated>
<table st-table="ctrl.tableData.displayedAllocated"
st-safe-src="ctrl.tableData.allocated" hz-table
class="table-striped table-rsp table-detail modern">