We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfdf83a commit ea2bb10Copy full SHA for ea2bb10
lib/vagrant-cloudstack/action/run_instance.rb
@@ -136,11 +136,8 @@ def call(env)
136
:image_id => template_id
137
}
138
139
- if network_type == "Advanced"
140
- options['network_ids'] = [network_id] if !network_id.nil?
141
- elsif network_type == "Basic"
142
- options['security_group_ids'] = security_group_ids
143
- end
+ options['network_ids'] = [network_id] if !network_id.nil?
+ options['security_group_ids'] = security_group_ids if !security_group_ids.nil?
144
options['project_id'] = project_id if project_id != nil
145
options['key_name'] = keypair if keypair != nil
146
options['name'] = hostname if hostname != nil
0 commit comments