Skip to content

Commit

Permalink
Merge branch 'master' into starting_retirement_request
Browse files Browse the repository at this point in the history
  • Loading branch information
d-m-u authored Feb 19, 2018
2 parents 9f123f6 + 02af759 commit d7cbaa5
Show file tree
Hide file tree
Showing 63 changed files with 747 additions and 637 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ gem "docker-api", "~>1.33.6", :require => false
gem "elif", "=0.1.0", :require => false
gem "fast_gettext", "~>1.2.0"
gem "gettext_i18n_rails", "~>1.7.2"
gem "gettext_i18n_rails_js", "~>1.1.0"
gem "gettext_i18n_rails_js", "~>1.3.0"
gem "hamlit", "~>2.7.0"
gem "highline", "~>1.6.21", :require => false
gem "inifile", "~>3.0", :require => false
Expand Down
7 changes: 7 additions & 0 deletions app/models/asset_detail.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class AssetDetail < ApplicationRecord
include NewWithTypeStiMixin

acts_as_miq_taggable

belongs_to :resource, :polymorphic => true
end
7 changes: 0 additions & 7 deletions app/models/asset_details.rb

This file was deleted.

2 changes: 1 addition & 1 deletion app/models/authenticator/httpd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def user_details_from_headers(username, request)
:lastname => request.headers['X-REMOTE-USER-LASTNAME'],
:email => request.headers['X-REMOTE-USER-EMAIL'],
:domain => request.headers['X-REMOTE-USER-DOMAIN']}
[user_attrs, (request.headers['X-REMOTE-USER-GROUPS'] || '').split(/[;:,]/)]
[user_attrs, (CGI.unescape(request.headers['X-REMOTE-USER-GROUPS'] || '')).split(/[;:,]/)]
end

def user_attrs_from_external_directory(username)
Expand Down
6 changes: 3 additions & 3 deletions app/models/ems_refresh/save_inventory_physical_infra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def save_physical_servers_inventory(ems, hashes, target = nil)
[]
end

child_keys = [:computer_system, :asset_details, :hosts]
child_keys = [:computer_system, :asset_detail, :hosts]
save_inventory_multi(ems.physical_servers, hashes, deletes, [:ems_ref], child_keys)
store_ids_for_new_records(ems.physical_servers, hashes, :ems_ref)
end
Expand All @@ -69,8 +69,8 @@ def save_customization_scripts_inventory(ems, hashes, target = nil)
#
# Saves asset details information of a resource
#
def save_asset_details_inventory(parent, hash)
def save_asset_detail_inventory(parent, hash)
return if hash.nil?
save_inventory_single(:asset_details, parent, hash)
save_inventory_single(:asset_detail, parent, hash)
end
end
189 changes: 0 additions & 189 deletions app/models/ldap_domain.rb

This file was deleted.

4 changes: 0 additions & 4 deletions app/models/ldap_group.rb

This file was deleted.

4 changes: 0 additions & 4 deletions app/models/ldap_management.rb

This file was deleted.

34 changes: 0 additions & 34 deletions app/models/ldap_region.rb

This file was deleted.

32 changes: 0 additions & 32 deletions app/models/ldap_server.rb

This file was deleted.

Loading

0 comments on commit d7cbaa5

Please sign in to comment.