Merge "security group not mandatory to create instance"
This commit is contained in:
commit
cea58f2977
@ -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) {
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user