foreman_xen 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 252a85f3d108973f856c0e3a60cf03baa59614d1
4
- data.tar.gz: a2e2bfd8fe410b24048747ec484cae6224658ad4
3
+ metadata.gz: 6ec91f411f72a1ff46a7ec6a185e22e842866736
4
+ data.tar.gz: 30682ce9742b077e2f9a62a448209a30d189f72d
5
5
  SHA512:
6
- metadata.gz: 78b409752919f56e5103edd9622e5b380f9fce7ff5cc0186f95fa8f97fb11f9b49349212b59132e345d2cd5e1a850a45914299b38686dfe7bfe17a7c5f169286
7
- data.tar.gz: 23f9bd44e6b29436b8820887281000d98d254a96dc6b1a2b3893b3b75226f7c5c45c73bcc9e091177d6fdbd093841a9c28e40387b146518e0252161367f50a5b
6
+ metadata.gz: adcc6e188b5df8ab67e07199a6a590699ea87908797f01d9a569e0d61a8d8f802abc5994fe689cb6f1f141d4123b3b8a5824056c69c50edaff0d00a161dd157e
7
+ data.tar.gz: e7dcb42fd309b4ee4a03a73d722d92fb8c16b1e04af0f6389d03a22d9833c739c210b761219d64afdb87dec21a8bdc44a6eb1df7a3fb6568f771ae020a4a797f
@@ -12,11 +12,9 @@ module FogExtensions
12
12
  name
13
13
  end
14
14
 
15
- def nics_attributes=(attrs)
16
- end
15
+ def nics_attributes=(attrs); end
17
16
 
18
- def volumes_attributes=(attrs)
19
- end
17
+ def volumes_attributes=(attrs); end
20
18
 
21
19
  def memory
22
20
  memory_static_max.to_i
@@ -151,7 +151,7 @@ module ForemanXen
151
151
  end
152
152
 
153
153
  def associated_host(vm)
154
- associate_by('mac', vm.interfaces.map(&:mac))
154
+ associate_by('mac', vm.interfaces.map(&:mac).map { |mac| Net::Validations.normalize_mac(mac) })
155
155
  end
156
156
 
157
157
  def find_snapshots_for_vm(vm)
@@ -204,8 +204,8 @@ module ForemanXen
204
204
  logger.info "create_vm(): builtin_template_name: #{builtin_template_name}"
205
205
  vm = custom_template_name != '' ? create_vm_from_custom(args) : create_vm_from_builtin(args)
206
206
  vm.set_attribute('name_description', 'Provisioned by Foreman')
207
- vm.set_attribute('VCPUs_at_startup', args[:vcpus_max])
208
207
  vm.set_attribute('VCPUs_max', args[:vcpus_max])
208
+ vm.set_attribute('VCPUs_at_startup', args[:vcpus_max])
209
209
  vm.reload
210
210
  return vm
211
211
  rescue => e
@@ -18,16 +18,16 @@
18
18
  end
19
19
 
20
20
  -%>
21
-
21
+ <%= javascript_tag("$(document).on('ContentLoad', tfm.numFields.initAll)"); %>
22
22
  <!-- VM Initial Settings -->
23
23
  <div class="children_fields">
24
24
  <fieldset id="vm_profile">
25
25
  <legend>VM Profile</legend>
26
26
  <div class="fields">
27
27
  <!--<%= text_f f, :name, :disabled => !fields_enabled, :value => name, :label => 'Name' if controller_name != 'hosts' %>-->
28
- <%= selectable_f f, :vcpus_max, 1..compute_resource.max_cpu_count, { :selected => attribute_map[:cpu_count] }, :class => 'input-mini', :disabled => !fields_enabled, :label => 'vCPUs' %>
29
- <%= selectable_f f, :memory_min, memory_options(compute_resource.max_memory), { :selected => attribute_map[:memory_min] }, :class => 'form-control span2', :disabled => !fields_enabled, :label => 'Memory Min' %>
30
- <%= selectable_f f, :memory_max, memory_options(compute_resource.max_memory), { :selected => attribute_map[:memory_max] }, :class => 'form-control span2', :disabled => !fields_enabled, :label => 'Memory Max' %>
28
+ <%= counter_f f, :vcpus_max, :disabled => !fields_enabled, :label => _('vCPUs'), :label_size => 'col-md-2', :'data-soft-max' => compute_resource.max_cpu_count %>
29
+ <%= byte_size_f f, :memory_min, :disabled => !fields_enabled, :label => _('Memory Min'), :label_size => "col-md-2", :'data-soft-max' => compute_resource.max_memory %>
30
+ <%= byte_size_f f, :memory_max, :disabled => !fields_enabled, :label => _('Memory Max'), :label_size => "col-md-2", :'data-soft-max' => compute_resource.max_memory %>
31
31
  </div>
32
32
  </fieldset>
33
33
  </div>
@@ -190,8 +190,3 @@
190
190
  }
191
191
  })
192
192
  </script>
193
-
194
- <!--
195
- <%= debug params -%>
196
- <%= debug compute_attributes -%>
197
- -->
@@ -1,3 +1,3 @@
1
1
  module ForemanXen
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.4.1'.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.4.0
4
+ version: 0.4.1
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: 2016-11-01 00:00:00.000000000 Z
13
+ date: 2016-12-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: fog-xenserver
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  requirements: []
100
100
  rubyforge_project:
101
- rubygems_version: 2.5.1
101
+ rubygems_version: 2.5.2
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Provision and manage XEN Server from Foreman