kitchen-qemu 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0950e201c1d779cec007b01803efc4e3b5946d1d
4
- data.tar.gz: 1a9fa830371b84be6ad1971fa0aa8a322327f762
3
+ metadata.gz: 44ebc12e086efba1262b5d8770a2f8f2bc9680e9
4
+ data.tar.gz: 85e422e8d62ae634b7fbd1ce26e20cb69e2a65b5
5
5
  SHA512:
6
- metadata.gz: 4e2ab66a36ea3e0d65caede9840d91447faad98f5151d9358cafaaeb219360aaa7bf5dc5fb1e9d6a9340207d29e10d2c72ed8d7355a7c25a31ee131edc8f4106
7
- data.tar.gz: 5a2439cbe9322fdf4b32fb1743670ed89bcffa5129870122fda22bf3e3c330aded98630e8ade93b8488f0aa0e1d212fc51558d94b952d90b7badc08e6db64014
6
+ metadata.gz: b6a6376cfec1294c16d28a7677bafadccce7be2272402994aa651531846b52e66b8d493c84b687f0eefa96c7b43d733e3040a46433e920eaa98cafc287677733
7
+ data.tar.gz: b665065bce9dfe7bfc1336a8931a528214c1c02d01f89c76c2ce6e0ac51b0885772caf4c87cf3911433804c78762adc05ba28c1c30fc24867a761320f4bfad05
@@ -83,7 +83,7 @@ module Kitchen
83
83
  if config[:image].kind_of?(String)
84
84
  config[:image] = [{
85
85
  :file => config[:image],
86
- :readonly => true,
86
+ :readonly => false,
87
87
  :snapshot => true,
88
88
  }]
89
89
  else
@@ -92,9 +92,9 @@ module Kitchen
92
92
  config[:image].each do |image|
93
93
  raise UserError, "Invalid image entry for #{instance.to_str}" unless
94
94
  image.kind_of?(Hash) && image[:file]
95
- image[:snapshot] = true if image[:snapshot].nil?
96
- image[:readonly] = image[:snapshot] if image[:readonly].nil?
97
- acpi_poweroff = true unless image[:readonly]
95
+ image[:readonly] = false if image[:readonly].nil?
96
+ image[:snapshot] = !image[:readonly] if image[:snapshot].nil?
97
+ acpi_poweroff = true unless (image[:snapshot] || image[:readonly])
98
98
  end
99
99
  end
100
100
  config[:acpi_poweroff] = acpi_poweroff if config[:acpi_poweroff].nil?
@@ -17,6 +17,6 @@
17
17
  module Kitchen
18
18
  module Driver
19
19
  # Version string for the QEMU Kitchen driver
20
- QEMU_VERSION = '0.2.2'
20
+ QEMU_VERSION = '0.2.3'
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-qemu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Renner Berthing
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-16 00:00:00.000000000 Z
11
+ date: 2016-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen