foreman_xen 0.2.2 → 0.2.3

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: abbb4299c1dd9ae44c1e9aa2c0b45ed23556bb55
4
- data.tar.gz: bbc763e68046246db2e6b4e4d0f7b68030469165
3
+ metadata.gz: 137d663af2dfcc9fcca50db73498681112c40dc6
4
+ data.tar.gz: a9c57a4c0aa6c6899226de04c0327cd71cf9b199
5
5
  SHA512:
6
- metadata.gz: da8edee7c133c4b1a13af727de15692fc79de0884cab7a16b14d65950b00541b9b13b34ea7da9cceb832807ddb97fe97f90b4e61da05b54ec269a7a5772628ee
7
- data.tar.gz: 4c392c79077add28da5153a9731167256e414156f6ef6c806a5092e0e94b1a002f728777bf0ea5a1552a49ba2607bd1c1b22be1b42e587f65fb7039099cc8f03
6
+ metadata.gz: d8338837518ead17a8ad64cdd1e041196bbfbb42e6324112df2b2cd591a4ab43ce5b97fd552f167981b354303db4148948bf4eddb4da50b882ec11a5678c351a
7
+ data.tar.gz: 37486307d6feb068c2b8490bf1b38b69bcf4a55c39f9e96770c9fd8b6216bf5af73b35ab06e02f5f61f6708db7570e33195d03196fe7dbfde4f03ffc9f3334e6
@@ -86,22 +86,15 @@ module ForemanXen
86
86
 
87
87
  storages.each do |sr|
88
88
  subresults = {}
89
- found = 0
89
+
90
90
  hosts.each do |host|
91
- next until sr.reference == host.suspend_image_sr
92
- found = 1
91
+ append_hostname = (sr.reference == host.suspend_image_sr) ? '(' + host.hostname + ')' : ''
93
92
  subresults[:name] = sr.name
94
- subresults[:display_name] = sr.name + '(' + host.hostname + ')'
93
+ subresults[:display_name] = sr.name + append_hostname
95
94
  subresults[:uuid] = sr.uuid
96
- break
97
- end
98
95
 
99
- if found == 0
100
- subresults[:name] = sr.name
101
- subresults[:display_name] = sr.name
102
- subresults[:uuid] = sr.uuid
96
+ results.push(subresults)
103
97
  end
104
- results.push(subresults)
105
98
  end
106
99
 
107
100
  results.sort_by! { |item| item[:display_name] }
@@ -1,3 +1,3 @@
1
1
  module ForemanXen
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
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.2.2
4
+ version: 0.2.3
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: 2015-11-09 00:00:00.000000000 Z
13
+ date: 2015-11-17 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.2.2
87
+ rubygems_version: 2.5.0
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Provision and manage XEN Server from Foreman