vagrant-libvirt 0.0.39 → 0.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cef6e96e357a1191f1b10a513d7a58154f6ed60
4
- data.tar.gz: 8829ceb3cb02ff4034a7a04db4bdff058a30c500
3
+ metadata.gz: 82b8df833b98cd137bfccda94b2544f25ae7d533
4
+ data.tar.gz: 40ddebef29dac353a3b1a50a2a7f1b732aa9edbb
5
5
  SHA512:
6
- metadata.gz: ec1a305e16d78c78cca37084ff07cf0f840ad5c502530ef255e63894f9178c48a34a9f544e125694358bbb870a5ed3e4e67d287187823400b1e8a84ac59392c9
7
- data.tar.gz: c8226c363be4311b61d0b9d1cbcf14ff08e6776790e4a016824fb727dc6db05b39588163bd5e99b0904ee11bdbd7f2dcc738f279af25738a702cdfb9a8282728
6
+ metadata.gz: 7b57a1a6d97c1b3135a3bde03708ab1f31ab0e40841bcbd2316719d4022604ac742294aed1600993c58beddcf3b013f2bc51f13fef7251caed6ab6504b9384a8
7
+ data.tar.gz: 0cad0fec5c4cb8c657505acb2d166b28cd4d1096fc9117be9887101d01920dbaa57f1146aaaeac98814058b94df8113d5318d1eb253bb4117ad76039b87d46f7
@@ -102,9 +102,6 @@ module VagrantPlugins
102
102
  # smartcard device
103
103
  @smartcard_dev = config.smartcard_dev
104
104
 
105
- # qemuargs
106
- @qemuargs = config.qemuargs
107
-
108
105
  # RNG device passthrough
109
106
  @rng = config.rng
110
107
 
@@ -283,15 +280,16 @@ module VagrantPlugins
283
280
  env[:ui].info(" -- smartcard device: mode=#{@smartcard_dev[:mode]}, type=#{@smartcard_dev[:type]}")
284
281
  end
285
282
 
286
- unless @qemuargs.empty?
283
+ @qargs = config.qemu_args
284
+ if not @qargs.empty?
287
285
  env[:ui].info(' -- Command line args: ')
288
- @qemuargs.each do |arg|
286
+ @qargs.each do |arg|
289
287
  msg = " -> value=#{arg[:value]}, "
290
288
  env[:ui].info(msg)
291
289
  end
292
290
  end
293
291
 
294
- env[:ui].info(" -- Command line : #{@cmd_line}")
292
+ env[:ui].info(" -- Command line : #{@cmd_line}") unless @cmd_line.empty?
295
293
 
296
294
  # Create libvirt domain.
297
295
  # Is there a way to tell fog to create new domain with already
@@ -142,7 +142,7 @@ module VagrantPlugins
142
142
  attr_accessor :mgmt_attach
143
143
 
144
144
  # Additional qemuargs arguments
145
- attr_accessor :qemuargs
145
+ attr_accessor :qemu_args
146
146
 
147
147
  def initialize
148
148
  @uri = UNSET_VALUE
@@ -242,7 +242,7 @@ module VagrantPlugins
242
242
  # Attach mgmt network
243
243
  @mgmt_attach = UNSET_VALUE
244
244
 
245
- @qemuargs = UNSET_VALUE
245
+ @qemu_args = []
246
246
  end
247
247
 
248
248
  def boot(device)
@@ -495,8 +495,7 @@ module VagrantPlugins
495
495
  end
496
496
 
497
497
  def qemuargs(options = {})
498
- @qemuargs = [] if @qemuargs == UNSET_VALUE
499
- @qemuargs.push(value: options[:value])
498
+ @qemu_args << options if options[:value]
500
499
  end
501
500
 
502
501
  # code to generate URI from a config moved out of the connect action
@@ -662,7 +661,7 @@ module VagrantPlugins
662
661
  # Attach mgmt network
663
662
  @mgmt_attach = true if @mgmt_attach == UNSET_VALUE
664
663
 
665
- @qemuargs = [] if @qemuargs == UNSET_VALUE
664
+ @qemu_args = [] if @qemu_args == UNSET_VALUE
666
665
  end
667
666
 
668
667
  def validate(machine)
@@ -692,10 +691,6 @@ module VagrantPlugins
692
691
  c = cdroms.dup
693
692
  c += other.cdroms
694
693
  result.cdroms = c
695
-
696
- c = qemuargs.dup
697
- c += other.qemuargs
698
- result.qemuargs = c
699
694
  end
700
695
  end
701
696
  end
@@ -219,9 +219,9 @@
219
219
  <% end -%>
220
220
  </devices>
221
221
 
222
- <% unless @qemuargs.empty? %>
222
+ <% unless @qargs.empty? %>
223
223
  <qemu:commandline>
224
- <% @qemuargs.each do |arg| %>
224
+ <% @qargs.each do |arg| %>
225
225
  <qemu:arg value='<%= arg[:value] %>'/>
226
226
  <% end %>
227
227
  </qemu:commandline>
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module ProviderLibvirt
3
- VERSION = '0.0.39'.freeze
3
+ VERSION = '0.0.40'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-libvirt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.39
4
+ version: 0.0.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Stanek