Index: trunk/extensions/OpenStackManager/special/SpecialNovaInstance.php |
— | — | @@ -198,16 +198,21 @@ |
199 | 199 | |
200 | 200 | $securityGroups = $this->adminNova->getSecurityGroups(); |
201 | 201 | $group_keys = array(); |
| 202 | + $defaults = array(); |
202 | 203 | foreach ( $securityGroups as $securityGroup ) { |
203 | 204 | if ( $securityGroup->getOwner() == $project ) { |
204 | 205 | $securityGroupName = $securityGroup->getGroupName(); |
205 | 206 | $group_keys["$securityGroupName"] = $securityGroupName; |
| 207 | + if ( $securityGroupName == "default" ) { |
| 208 | + $defaults["default"] = "default"; |
| 209 | + } |
206 | 210 | } |
207 | 211 | } |
208 | 212 | $instanceInfo['groups'] = array( |
209 | 213 | 'type' => 'multiselect', |
210 | 214 | 'section' => 'instance/info', |
211 | 215 | 'options' => $group_keys, |
| 216 | + 'default' => $defaults, |
212 | 217 | 'label-message' => 'openstackmanager-securitygroups', |
213 | 218 | 'name' => 'groups', |
214 | 219 | ); |