Skip to content

Commit

Permalink
Adjusting ManageIQ core to enable PhysicalChassis API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
EsdrasVP committed Apr 20, 2018
1 parent b64c360 commit 202a76a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/models/ext_management_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def self.api_allowed_attributes
has_many :storage_profiles, :foreign_key => "ems_id", :dependent => :destroy, :inverse_of => :ext_management_system
has_many :physical_racks, :foreign_key => "ems_id", :dependent => :destroy, :inverse_of => :ext_management_system
has_many :physical_switches, :foreign_key => "ems_id", :dependent => :destroy, :inverse_of => :ext_management_system
has_many :physical_chassis, :foreign_key => "ems_id", :dependent => :destroy, :inverse_of => :ext_management_system
has_many :physical_chassis, :foreign_key => "ems_id", :dependent => :destroy, :inverse_of => :ext_management_system, :class_name => "PhysicalChassis"
has_many :physical_servers, :foreign_key => "ems_id", :dependent => :destroy, :inverse_of => :ext_management_system
has_many :customization_scripts, :foreign_key => "manager_id", :dependent => :destroy, :inverse_of => :ext_management_system

Expand Down
4 changes: 1 addition & 3 deletions lib/vmdb/inflections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ def self.load_inflections
inflect.plural(/Queue$/, "Queue") # for Class name(s)
inflect.singular(/queue$/, "queue") # for table name(s)
inflect.plural(/queue$/, "queue") # for table name(s)
inflect.singular(/Chassis$/, "Chassis") # for Class name(s)
inflect.plural(/Chassis$/, "Chassis") # for Class name(s)
inflect.singular(/chassis$/, "chassis") # for table name(s)
inflect.singular(/chassis$/, "chassi") # for table name(s)
inflect.plural(/chassis$/, "chassis") # for table name(s)
inflect.singular(/quota$/, "quota")
inflect.singular(/Quota$/, "Quota")
Expand Down

0 comments on commit 202a76a

Please sign in to comment.