kitchen-qemu 0.2.2 → 0.2.3
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 +4 -4
- data/lib/kitchen/driver/qemu.rb +4 -4
- data/lib/kitchen/driver/qemu_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 44ebc12e086efba1262b5d8770a2f8f2bc9680e9
|
|
4
|
+
data.tar.gz: 85e422e8d62ae634b7fbd1ce26e20cb69e2a65b5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b6a6376cfec1294c16d28a7677bafadccce7be2272402994aa651531846b52e66b8d493c84b687f0eefa96c7b43d733e3040a46433e920eaa98cafc287677733
|
|
7
|
+
data.tar.gz: b665065bce9dfe7bfc1336a8931a528214c1c02d01f89c76c2ce6e0ac51b0885772caf4c87cf3911433804c78762adc05ba28c1c30fc24867a761320f4bfad05
|
data/lib/kitchen/driver/qemu.rb
CHANGED
|
@@ -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 =>
|
|
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[:
|
|
96
|
-
image[:
|
|
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?
|
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.
|
|
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-
|
|
11
|
+
date: 2016-06-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: test-kitchen
|