Index: trunk/extensions/OpenStackManager/OpenStackNovaController.php |
— | — | @@ -137,11 +137,11 @@ |
138 | 138 | $options['InstanceType'] = $instanceType; |
139 | 139 | $options['Placement.AvailabilityZone'] = $availabilityZone; |
140 | 140 | $options['DisplayName'] = $instanceName; |
141 | | - #if ( count( $groups ) > 1 ) { |
| 141 | + if ( count( $groups ) > 1 ) { |
142 | 142 | $options['SecurityGroup'] = $groups; |
143 | | - #} else if ( count( $groups ) == 1 ) { |
144 | | - # $options['SecurityGroup'] = $groups[0]; |
145 | | - #} |
| 143 | + } else if ( count( $groups ) == 1 ) { |
| 144 | + $options['SecurityGroup'] = $groups[0]; |
| 145 | + } |
146 | 146 | $response = $this->novaConnection->run_instances( $image, 1, 1, $options ); |
147 | 147 | if ( ! $response->isOK() ) { |
148 | 148 | return null; |