Skip to content

Commit

Permalink
Merge pull request #282 from mansam/move-cinder-manager-inventory-cla…
Browse files Browse the repository at this point in the history
…sses

Move CinderManager inventory classes
  • Loading branch information
agrare authored Apr 27, 2018
2 parents a95440e + 08ae743 commit c691435
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions app/models/manageiq/providers/openstack/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ def build_inventory(ems, target)
inventory(
ems,
target,
ManageIQ::Providers::Openstack::Inventory::Collector::StorageManager::CinderManager,
ManageIQ::Providers::Openstack::Inventory::Persister::StorageManager::CinderManager,
[ManageIQ::Providers::Openstack::Inventory::Parser::StorageManager::CinderManager]
ManageIQ::Providers::Openstack::Inventory::Collector::CinderManager,
ManageIQ::Providers::Openstack::Inventory::Persister::CinderManager,
[ManageIQ::Providers::Openstack::Inventory::Parser::CinderManager]
)
when ManageIQ::Providers::Openstack::NetworkManager
inventory(
Expand All @@ -28,7 +28,7 @@ def build_inventory(ems, target)
ManageIQ::Providers::Openstack::Inventory::Persister::TargetCollection,
[ManageIQ::Providers::Openstack::Inventory::Parser::CloudManager,
ManageIQ::Providers::Openstack::Inventory::Parser::NetworkManager,
ManageIQ::Providers::Openstack::Inventory::Parser::StorageManager::CinderManager]
ManageIQ::Providers::Openstack::Inventory::Parser::CinderManager]
)
else
# Fallback to ems refresh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class ManageIQ::Providers::Openstack::Inventory::Collector < ManagerRefresh::Inv

require_nested :CloudManager
require_nested :NetworkManager
require_nested :CinderManager
require_nested :TargetCollection

attr_reader :availability_zones
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ManageIQ::Providers::Openstack::Inventory::Collector::StorageManager::CinderManager < ManageIQ::Providers::Openstack::Inventory::Collector
class ManageIQ::Providers::Openstack::Inventory::Collector::CinderManager < ManageIQ::Providers::Openstack::Inventory::Collector
include ManageIQ::Providers::Openstack::Inventory::Collector::HelperMethods

def cloud_volumes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
class ManageIQ::Providers::Openstack::Inventory::Parser < ManagerRefresh::Inventory::Parser
require_nested :CloudManager
require_nested :NetworkManager
require_nested :CinderManager
end
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ManageIQ::Providers::Openstack::Inventory::Parser::StorageManager::CinderManager < ManageIQ::Providers::Openstack::Inventory::Parser
class ManageIQ::Providers::Openstack::Inventory::Parser::CinderManager < ManageIQ::Providers::Openstack::Inventory::Parser
def parse
cloud_volumes
cloud_volume_snapshots
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
class ManageIQ::Providers::Openstack::Inventory::Persister < ManagerRefresh::Inventory::Persister
require_nested :CloudManager
require_nested :NetworkManager
require_nested :CinderManager
require_nested :TargetCollection

# TODO(lsmola) figure out a way to pass collector info, probably via target, then remove the below
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ManageIQ::Providers::Openstack::Inventory::Persister::StorageManager::CinderManager < ManageIQ::Providers::Openstack::Inventory::Persister
class ManageIQ::Providers::Openstack::Inventory::Persister::CinderManager < ManageIQ::Providers::Openstack::Inventory::Persister
def initialize_inventory_collections
add_inventory_collections(storage,
%i(
Expand Down

0 comments on commit c691435

Please sign in to comment.