fog-libvirt 0.12.0 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -0
- data/fog-libvirt.gemspec +0 -1
- data/lib/fog/libvirt/models/compute/server.rb +9 -4
- data/lib/fog/libvirt/version.rb +1 -1
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f14f3c6f7a7006039ac17b404d7f533e5abcfb662d18984059c5a7f53305c186
|
4
|
+
data.tar.gz: d8ecdd32d3809c080ae2604fcdd20091c8b097cd75905c59ef0975559f7b6552
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02e8650702e0275fedc29d61e61b882e9384b520a5e8700964d107e0c0c5544798fd9fd6c43a78d0a781ef464485b2465c5b5560272e8338d468e2bc25d9b230
|
7
|
+
data.tar.gz: 491a54f950cdb142b2a95cdf97e6e6fa378868374ba684d01a67d3884566f67c0e8c5b860bcd1b13d6e074dc1c5706208ca45e0c1cebcf2e4e72b367d74de24a
|
data/Gemfile
CHANGED
data/fog-libvirt.gemspec
CHANGED
@@ -33,7 +33,6 @@ Gem::Specification.new do |s|
|
|
33
33
|
|
34
34
|
s.add_development_dependency("net-ssh")
|
35
35
|
s.add_development_dependency("minitest", "~> 5.0")
|
36
|
-
s.add_development_dependency("minitest-stub-const")
|
37
36
|
s.add_development_dependency("pry")
|
38
37
|
s.add_development_dependency("rake")
|
39
38
|
s.add_development_dependency("rubocop")
|
@@ -90,12 +90,17 @@ module Fog
|
|
90
90
|
volumes.first.path if volumes and volumes.first
|
91
91
|
end
|
92
92
|
|
93
|
-
def destroy(options={ :destroy_volumes => false, :flags =>
|
93
|
+
def destroy(options={ :destroy_volumes => false, :flags => ::Libvirt::Domain::UNDEFINE_NVRAM })
|
94
94
|
poweroff unless stopped?
|
95
|
-
|
95
|
+
flags = options.fetch(:flags, ::Libvirt::Domain::UNDEFINE_NVRAM)
|
96
|
+
if flags.zero?
|
96
97
|
service.vm_action(uuid, :undefine)
|
97
98
|
else
|
98
|
-
|
99
|
+
# the test driver doesn't support UNDEFINE_NVRAM
|
100
|
+
if service.uri.driver == 'test'
|
101
|
+
flags ^= ::Libvirt::Domain::UNDEFINE_NVRAM
|
102
|
+
end
|
103
|
+
service.vm_action(uuid, :undefine, flags)
|
99
104
|
end
|
100
105
|
volumes.each { |vol| vol.destroy } if options[:destroy_volumes]
|
101
106
|
true
|
@@ -408,7 +413,7 @@ module Fog
|
|
408
413
|
graphics.autoport = "yes"
|
409
414
|
end
|
410
415
|
graphics.listen = display[:listen] unless display[:listen].empty?
|
411
|
-
graphics.
|
416
|
+
graphics.passwd = display[:password] unless display[:password].empty?
|
412
417
|
|
413
418
|
xml.video do
|
414
419
|
xml.model(:type => "cirrus", :vram => 9216, :heads => 1)
|
data/lib/fog/libvirt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-libvirt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- geemus (Wesley Beary)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-core
|
@@ -108,20 +108,6 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '5.0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: minitest-stub-const
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
111
|
- !ruby/object:Gem::Dependency
|
126
112
|
name: pry
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -334,7 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
334
320
|
- !ruby/object:Gem::Version
|
335
321
|
version: '0'
|
336
322
|
requirements: []
|
337
|
-
rubygems_version: 3.4.
|
323
|
+
rubygems_version: 3.4.19
|
338
324
|
signing_key:
|
339
325
|
specification_version: 2
|
340
326
|
summary: Module for the 'fog' gem to support libvirt
|