Skip to content

Commit 5a08459

Browse files
Merge pull request #82 from atsaki/optional_network_type
Make network_type optional
2 parents d8055c0 + ea2bb10 commit 5a08459

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/vagrant-cloudstack/action/run_instance.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,8 @@ def call(env)
136136
:image_id => template_id
137137
}
138138

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
139+
options['network_ids'] = [network_id] if !network_id.nil?
140+
options['security_group_ids'] = security_group_ids if !security_group_ids.nil?
144141
options['project_id'] = project_id if project_id != nil
145142
options['key_name'] = keypair if keypair != nil
146143
options['name'] = hostname if hostname != nil

0 commit comments

Comments
 (0)