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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 173406401f8c728989e70e75ae9765bffc53d84e14ae838db08576f34ba44539
4
- data.tar.gz: 58c5ac60c88a3a2cbdca2744231f939d5a4871db89d35e4cbf7483d5a2ef638b
3
+ metadata.gz: f14f3c6f7a7006039ac17b404d7f533e5abcfb662d18984059c5a7f53305c186
4
+ data.tar.gz: d8ecdd32d3809c080ae2604fcdd20091c8b097cd75905c59ef0975559f7b6552
5
5
  SHA512:
6
- metadata.gz: 1d23624637ceb4b353a83cbd5f0b49917adf1d8dc20a471eb05bfd04259a6b39fe40f3c689278a31c13e708d9a5e599b11da7bdf67fbaec622316a2ec2ed7082
7
- data.tar.gz: 00abab82645d5f8f9a176d2188c7e5c2d6004118f87195994a65b4ce4c949b0d3b52a23ca6dab19d4a9c83134bb8dc59742e9e81ecc41982306903b5290a32b7
6
+ metadata.gz: 02e8650702e0275fedc29d61e61b882e9384b520a5e8700964d107e0c0c5544798fd9fd6c43a78d0a781ef464485b2465c5b5560272e8338d468e2bc25d9b230
7
+ data.tar.gz: 491a54f950cdb142b2a95cdf97e6e6fa378868374ba684d01a67d3884566f67c0e8c5b860bcd1b13d6e074dc1c5706208ca45e0c1cebcf2e4e72b367d74de24a
data/Gemfile CHANGED
@@ -6,4 +6,7 @@ group :development, :test do
6
6
  gem "octokit", :require => false
7
7
  end
8
8
 
9
+ # 0.8.3 breaks our tests
10
+ gem "ruby-libvirt", ">= 0.7.0", "< 0.8.3"
11
+
9
12
  gemspec
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 => 0 })
93
+ def destroy(options={ :destroy_volumes => false, :flags => ::Libvirt::Domain::UNDEFINE_NVRAM })
94
94
  poweroff unless stopped?
95
- if options.fetch(:flags, 0).zero?
95
+ flags = options.fetch(:flags, ::Libvirt::Domain::UNDEFINE_NVRAM)
96
+ if flags.zero?
96
97
  service.vm_action(uuid, :undefine)
97
98
  else
98
- service.vm_action(uuid, :undefine, options[:flags])
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.password = display[:password] unless display[:password].empty?
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)
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Libvirt
3
- VERSION = '0.12.0'
3
+ VERSION = '0.12.2'
4
4
  end
5
5
  end
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.0
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: 2023-11-10 00:00:00.000000000 Z
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.10
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