foreman_virt_who_configure 0.4.3 → 0.4.4

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
  SHA256:
3
- metadata.gz: d057b57be91bc9eefe18bd8107e4b97c8ba65f68afd7c8fa7702005b40b1b762
4
- data.tar.gz: 3d385ee27ec31bcef414d4d045ada1563526eb834b7a4e271c0259e9ecede21e
3
+ metadata.gz: 3a6b680f1c90e8b69f2031c4018997add91244112f8eef99872241929dfefae4
4
+ data.tar.gz: 3b04ac15f9cc9433efb697a779aaeafb4ecc069a1237d28ec0f74d86db34dd92
5
5
  SHA512:
6
- metadata.gz: bb1597a03a2592d87ab2c0f99fd9cb914ac6299fbfff4b62b58ba3fd9821ec65cbbae30e045e3fca7e22c102d5002d4a85d5630aad4309a8b1b667f7dd506474
7
- data.tar.gz: 2f69c628a6f20615e97b764b157a5eb471f0c4eeeb3f7822095856e18c97bf4891f8d9518ab84e0d328088201b3b1dee52fd6df0d1b6cceb3c0ef0b337a05aa3
6
+ metadata.gz: c450e7f3f06b9f1a4435266b058790f022bfe6786a81eba37b8ce2dec478e08c1d9790bd25106c543993d0069607ad6f745506c867d6dba60ac4b57eeff5ff25
7
+ data.tar.gz: e720dc2df8586257b5524cc16ef3c594a8e228571164b9096adbe7f9744507909098e271ea658a00286459a3e4f18db06aead4ab9c0c4dabf93e211ddb322903
@@ -92,12 +92,13 @@ module ForemanVirtWhoConfigure
92
92
  after_create :create_service_user
93
93
  after_destroy :destroy_service_user
94
94
 
95
- validates :interval, :hypervisor_type, :hypervisor_server,
95
+ validates :interval, :hypervisor_type,
96
96
  :satellite_url, :hypervisor_id, :organization_id, :name,
97
97
  :presence => true
98
98
  validates :name, :uniqueness => { :scope => :organization_id }
99
99
  validates :hypervisor_password, :presence => true, :if => Proc.new { |c| c.hypervisor_type != 'libvirt' && c.hypervisor_type != 'kubevirt' }
100
100
  validates :hypervisor_username, :presence => true, :if => Proc.new { |c| c.hypervisor_type != 'kubevirt' }
101
+ validates :hypervisor_server, :presence => true, :if => Proc.new { |c| c.hypervisor_type != 'kubevirt' }
101
102
  validates :hypervisor_type, :inclusion => HYPERVISOR_TYPES.keys
102
103
  validates :hypervisor_id, :inclusion => HYPERVISOR_IDS
103
104
  validates :interval, :inclusion => AVAILABLE_INTERVALS.keys.map(&:to_i)
@@ -157,7 +157,7 @@ EOS
157
157
  end
158
158
 
159
159
  def enabled_filters(filter)
160
- filter.reject { |_, list| list.empty? }.map { |filter,list| filtering_line_sanitized(filter, list) }.join(',')
160
+ filter.reject { |_, list| list.blank? }.map { |filter,list| filtering_line_sanitized(filter, list) }.join
161
161
  end
162
162
 
163
163
  def filtering_line_sanitized(filter, list)
@@ -8,7 +8,7 @@
8
8
  <% end %>
9
9
 
10
10
  <%= select_f f, :hypervisor_type, ForemanVirtWhoConfigure::Config::HYPERVISOR_TYPES, :first, :last %>
11
- <%= text_f f, :hypervisor_server, inline_help_popover(hypervisor_server_help_data[f.object.hypervisor_type]).merge(:data => { :help => hypervisor_server_help_data }) %>
12
- <%= text_f f, :hypervisor_username, inline_help_popover(hypervisor_username_help_data[f.object.hypervisor_type]).merge(:data => { :help => hypervisor_username_help_data }) %>
13
- <%= password_f f, :hypervisor_password, { :value => f.object.hypervisor_password }.merge(inline_help_popover(_('Account password by which virt-who is to connect to the hypervisor instance.'))) %>
11
+ <%= text_f f, :hypervisor_server, { :required => true }.merge(inline_help_popover(hypervisor_server_help_data[f.object.hypervisor_type]).merge(:data => { :help => hypervisor_server_help_data })) %>
12
+ <%= text_f f, :hypervisor_username, { :required => true }.merge(inline_help_popover(hypervisor_username_help_data[f.object.hypervisor_type]).merge(:data => { :help => hypervisor_username_help_data })) %>
13
+ <%= password_f f, :hypervisor_password, { :required => true, :value => f.object.hypervisor_password }.merge(inline_help_popover(_('Account password by which virt-who is to connect to the hypervisor instance.'))) %>
14
14
  </div>
@@ -1,3 +1,3 @@
1
1
  module ForemanVirtWhoConfigure
2
- VERSION = '0.4.3'.freeze
2
+ VERSION = '0.4.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_virt_who_configure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman virt-who-configure team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-20 00:00:00.000000000 Z
11
+ date: 2019-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katello