security group not mandatory to create instance

as per the nova api and legacy launch instance,
the security group is not mandatory option to create an instance.

but in the new launch instance form, it is marked as
mandatory and it is not allowed to create/launch
an instance if no security group was selected.

this patch making the security group is optional.

Change-Id: Ib381a16922abaf2e704c6a46a8189aec23adfbaa
Closes-Bug: #1501722
This commit is contained in:
Masco Kaliyamoorthy 2015-10-01 17:03:27 +05:30
parent a23a7e0b6c
commit dedc10f684
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">