foreman_xen 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/models/foreman_xen/xenserver.rb +13 -4
- data/lib/foreman_xen/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82588f8bd4f2f6f33d10b123dfcecfdd449d2fe8
|
4
|
+
data.tar.gz: 5cdf29eb501090f3c2397bf7a977e4f104d50551
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64537d69aedd74fe08e745c251480d85572060b74cacce53bd97448b96174197caf46ebf28c2ef480835673427fdde39e45ef2ee31b07aa623e0458ddd8736c1
|
7
|
+
data.tar.gz: 1f7f9efa28c5f05995f835464f86d2d5ea9d1605a44665f477defafa109220758005f27a1bb773ad5a645e5057f099606681af9873a9a6d0c77c1c06b89cb178
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Packages are available for Debian based distribtions as **ruby-foreman-xen** and
|
|
8
8
|
|
9
9
|
Please see the Foreman manual for further instructions:
|
10
10
|
|
11
|
-
* [Foreman: How to Install a Plugin](http://theforeman.org/
|
11
|
+
* [Foreman: How to Install a Plugin](http://theforeman.org/plugins/#2.Installation)
|
12
12
|
|
13
13
|
## Compatibility
|
14
14
|
|
@@ -86,15 +86,24 @@ module ForemanXen
|
|
86
86
|
|
87
87
|
storages.each do |sr|
|
88
88
|
subresults = {}
|
89
|
+
found = 0
|
89
90
|
|
90
91
|
hosts.each do |host|
|
91
|
-
|
92
|
+
if sr.reference == host.suspend_image_sr
|
93
|
+
found = 1
|
94
|
+
subresults[:name] = sr.name
|
95
|
+
subresults[:display_name] = sr.name + '(' + host.hostname + ')'
|
96
|
+
subresults[:uuid] = sr.uuid
|
97
|
+
break
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
if found == 0
|
92
102
|
subresults[:name] = sr.name
|
93
|
-
subresults[:display_name] = sr.name
|
103
|
+
subresults[:display_name] = sr.name
|
94
104
|
subresults[:uuid] = sr.uuid
|
95
|
-
|
96
|
-
results.push(subresults)
|
97
105
|
end
|
106
|
+
results.push(subresults)
|
98
107
|
end
|
99
108
|
|
100
109
|
results.sort_by! { |item| item[:display_name] }
|
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.2.
|
4
|
+
version: 0.2.4
|
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:
|
13
|
+
date: 2016-01-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
86
|
rubyforge_project:
|
87
|
-
rubygems_version: 2.5.
|
87
|
+
rubygems_version: 2.4.5.1
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Provision and manage XEN Server from Foreman
|