foreman_xen 0.0.5 → 0.0.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,11 +2,13 @@
2
2
  <%
3
3
  nat = compute_resource.networks
4
4
  selected = ""
5
- if params && params['host'] && params['host']['compute_attributes']
6
- selected = params['host']['compute_attributes']['VIFs']['print']
7
- elsif new.__vifs
8
- selected = new.__vifs['print']
9
- end
5
+ if params['host']
6
+ if params && params['host'] && params['host']['compute_attributes']
7
+ selected = params['host']['compute_attributes']['VIFs']['print']
8
+ elsif new.__vifs
9
+ selected = new.__vifs['print']
10
+ end
11
+ end
10
12
  -%>
11
13
 
12
14
  <div id='nat' class=''>
@@ -2,13 +2,16 @@
2
2
  <%
3
3
  selected = ""
4
4
  size = ""
5
- if params && params['host'] && params['host']['compute_attributes'] && params['host']['compute_attributes']['VBDs']['physical_size'] != ""
6
- selected = params['host']['compute_attributes']['VBDs']['print']
7
- size = params['host']['compute_attributes']['VBDs']['physical_size']
8
- elsif new.__vbds
9
- selected = new.__vbds['print']
10
- size = new.__vbds['physical_size']
11
- end
5
+
6
+ if params['host']
7
+ if params && params['host'] && params['host']['compute_attributes'] && params['host']['compute_attributes']['VBDs']['physical_size'] != ""
8
+ selected = params['host']['compute_attributes']['VBDs']['print']
9
+ size = params['host']['compute_attributes']['VBDs']['physical_size']
10
+ elsif new.__vbds
11
+ selected = new.__vbds['print']
12
+ size = new.__vbds['physical_size']
13
+ end
14
+ end
12
15
  -%>
13
16
  <%= selectable_f f, :print, compute_resource.storage_pools.map(&:name), { :selected => selected }, :class => "span2", :label => _("Storage Repository") %>
14
17
  <%= text_f f, :physical_size, :class => "input-mini", :label => _("Size (GB)"), :value => size %>
@@ -1,3 +1,3 @@
1
1
  module ForemanXen
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.5.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_xen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 89
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
9
  - 5
10
- version: 0.0.5
10
+ - 1
11
+ version: 0.0.5.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - "Pavel Nemirovsky, Micha\xC5\x82 Piotrowski, Avi Israeli"
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2014-12-17 00:00:00 +00:00
19
+ date: 2014-12-30 00:00:00 +00:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency