foreman_xen 0.5.1 → 0.5.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
  SHA1:
3
- metadata.gz: 9af7ac426ad185d655c835e8ff9e81dd49f3641f
4
- data.tar.gz: 539bacd3fda4a69e8412edadf9c6403d86d4e279
3
+ metadata.gz: d42bd1079a60f578243092cb5873746eb8a15e66
4
+ data.tar.gz: 872e16466d0548666a5be9d48b42edded9979e61
5
5
  SHA512:
6
- metadata.gz: 393c6c7e862aee7b9e4e5f8d4fb934fb0439a39650993b4b98c26ce1d72b45c17c37b78a86d835879faf6c988cc64633d54ba17f2b71ca9bb5c7a1d8ff9c6a6e
7
- data.tar.gz: b181d3688d77c5bb2ede159d64ecd09b42830a7872cfbd93714dde648a9b50fa7ce24a47bc82babb42068269d4dd034003dab08fe23445e4fe269986fc0d575b
6
+ metadata.gz: 17738c40f2791e50814fe5903a6b5772ac757a52c80295c5fd78cfecdce26760d166cc2cf3d141cb1acba839edd1cef542bcf24648c4ccd53fc7a2b37a24b22b
7
+ data.tar.gz: 2b4efc0e617eca3850860a1b7543d437d3b0bf90b23cdc80314b80d843c5cbe31648d365ce6b13953834017b84133724b0ea85d644fbd36c5f6ba88bac3e5d9d
@@ -24,7 +24,7 @@ module ForemanXen
24
24
 
25
25
  # List of methods to permit
26
26
  def cache_attribute_whitelist
27
- %w(networks hypervisors templates custom_templates builtin_templates storage_pools)
27
+ %w[networks hypervisors templates custom_templates builtin_templates storage_pools]
28
28
  end
29
29
 
30
30
  def load_compute_resource
@@ -27,7 +27,7 @@ module XenComputeHelper
27
27
 
28
28
  def hosts_controller_compute_attribute_map(params, compute_resource, new)
29
29
  attribute_map = empty_attribute_map
30
- if new_host?(new)
30
+ if new.try(:new_record?)
31
31
  compute_attributes = compute_resource.compute_profile_attributes_for(params['host']['compute_profile_id'])
32
32
  attribute_map = filter_compute_attributes(attribute_map, compute_attributes)
33
33
  elsif new
@@ -356,7 +356,6 @@ module ForemanXen
356
356
  :type => 'vnc',
357
357
  :name => vm.name
358
358
  )
359
-
360
359
  rescue Error => e
361
360
  logger.warn e
362
361
  raise e
@@ -418,7 +417,7 @@ module ForemanXen
418
417
  end
419
418
 
420
419
  def get_templates(templates)
421
- tmps = templates.select { |t| !t.is_a_snapshot }
420
+ tmps = templates.reject(&:is_a_snapshot)
422
421
  tmps.sort_by(&:name)
423
422
  end
424
423
 
@@ -1,3 +1,3 @@
1
1
  module ForemanXen
2
- VERSION = '0.5.1'.freeze
2
+ VERSION = '0.5.2'.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.5.1
4
+ version: 0.5.2
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: 2017-03-02 00:00:00.000000000 Z
13
+ date: 2017-05-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: fog-xenserver