foreman_xen 0.7.0 → 0.7.1

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: 0cdd6bcd07d559882c14aeb7ff2846ec2374c6d2d499106a3164a8e69209d667
4
- data.tar.gz: adec7df98c1e131f35aeac15e51fd13c74df1db4149a352f656c7cde6715344a
3
+ metadata.gz: 8538e8389348354506cb45bc49e560cd902642017bbd42a181612ba3296fe0ca
4
+ data.tar.gz: a1eddbd74c4d0c5b70bbcb04efe1a5fefd68555b4229934b6a4169e86b08eda0
5
5
  SHA512:
6
- metadata.gz: aa108f441b9d2b3fa86d6a92c0dfad446bef725be5516564071b155757c85c457384d1e1024331ff077e641b1d2e75a0a9cc558cf58c979979b0a2a4866e5499
7
- data.tar.gz: e50152b26e2a04b0b341f9e7ee3e3143ff2611595ab7d773f1da82b2690b91fe59b7586ab3290e459882e1a314e7f0657d7f34c314b8d66a5969f4f9273576c2
6
+ metadata.gz: a435f72d1db68dd8550a3dfa67a82f230cfdaccb71e36fa6821fa57b5f3f2d36037f4ba5dc9d42cf7a3e453eb0a94227980c792522cca2a5704e70d8e9fc6ffe
7
+ data.tar.gz: c70951ebf49095228ee22742da35f14ae4dd68d8a47e908dce45d9b790de99617320d1a3abb66f214215580ded2e6daaeba5d1342a459d755479a4ea8dbe8244
@@ -133,7 +133,7 @@ module ForemanXen
133
133
 
134
134
  def templates!
135
135
  store_in_cache('templates') do
136
- client.servers.templates.sort_by(&:name)
136
+ client.templates.sort_by(&:name)
137
137
  end
138
138
  end
139
139
 
@@ -143,7 +143,7 @@ module ForemanXen
143
143
 
144
144
  def custom_templates!
145
145
  store_in_cache('custom_templates') do
146
- get_templates(client.servers.custom_templates)
146
+ get_templates(client.custom_templates)
147
147
  end
148
148
  end
149
149
 
@@ -153,7 +153,7 @@ module ForemanXen
153
153
 
154
154
  def builtin_templates!
155
155
  store_in_cache('builtin_templates') do
156
- get_templates(client.servers.builtin_templates)
156
+ get_templates(client.builtin_templates)
157
157
  end
158
158
  end
159
159
 
@@ -165,7 +165,7 @@ module ForemanXen
165
165
  return [] if vm.snapshots.empty?
166
166
 
167
167
  tmps = begin
168
- client.servers.templates.select(&:is_a_snapshot)
168
+ client.templates.select(&:is_a_snapshot)
169
169
  rescue
170
170
  []
171
171
  end
@@ -178,7 +178,7 @@ module ForemanXen
178
178
 
179
179
  def find_snapshots
180
180
  tmps = begin
181
- client.servers.templates.select(&:is_a_snapshot)
181
+ client.templates.select(&:is_a_snapshot)
182
182
  rescue
183
183
  []
184
184
  end
@@ -296,7 +296,7 @@ module ForemanXen
296
296
 
297
297
  other_config = {}
298
298
  if builtin_template_name != ''
299
- template = client.servers.builtin_templates.find { |tmp| tmp.name == args[:builtin_template_name] }
299
+ template = client.builtin_templates.find { |tmp| tmp.name == args[:builtin_template_name] }
300
300
  other_config = template.other_config
301
301
  other_config.delete 'disks'
302
302
  other_config.delete 'default_template'
@@ -373,10 +373,9 @@ module ForemanXen
373
373
 
374
374
  def client
375
375
  @client ||= Fog::XenServer::Compute.new(
376
- :xenserver_url => url,
377
- :xenserver_username => user,
378
- :xenserver_password => password,
379
- :xenserver_redirect_to_master => true
376
+ :xenserver_url => url,
377
+ :xenserver_username => user,
378
+ :xenserver_password => password
380
379
  )
381
380
  end
382
381
 
@@ -17,7 +17,7 @@ module ForemanXen
17
17
 
18
18
  initializer 'foreman_xen.register_plugin', :before => :finisher_hook do |app|
19
19
  Foreman::Plugin.register :foreman_xen do
20
- requires_foreman '>= 1.13'
20
+ requires_foreman '>= 1.18'
21
21
  # Register xen compute resource in foreman
22
22
  compute_resource ForemanXen::Xenserver
23
23
  parameter_filter(ComputeResource, :uuid)
@@ -1,3 +1,3 @@
1
1
  module ForemanXen
2
- VERSION = '0.7.0'.freeze
2
+ VERSION = '0.7.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_xen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Nemirovsky
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-11-11 00:00:00.000000000 Z
13
+ date: 2019-01-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: fog-xenserver