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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d42bd1079a60f578243092cb5873746eb8a15e66
|
4
|
+
data.tar.gz: 872e16466d0548666a5be9d48b42edded9979e61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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.
|
420
|
+
tmps = templates.reject(&:is_a_snapshot)
|
422
421
|
tmps.sort_by(&:name)
|
423
422
|
end
|
424
423
|
|
data/lib/foreman_xen/version.rb
CHANGED
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.
|
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-
|
13
|
+
date: 2017-05-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fog-xenserver
|