Skip to content

Commit

Permalink
Merge pull request #352 from agrare/remove_duplicated_persister_share…
Browse files Browse the repository at this point in the history
…d_options

Remove duplicated persister shared_options
  • Loading branch information
Ladas committed Jan 7, 2019
2 parents bedb443 + 2e9d8c7 commit 482ade1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,6 @@ def initialize_inventory_collections
initialize_infra_inventory_collections
end

def complete
true
end

def saver_strategy
:default
end

def strategy
nil
end

def targeted?
false
end

def parent
manager.presence
end

def shared_options
{
:complete => complete,
:saver_strategy => saver_strategy,
:strategy => strategy,
:targeted => targeted?,
:parent => parent
}
end

def vim_class_to_collection(managed_object)
case managed_object
when RbVmomi::VIM::ComputeResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,4 @@ class ManageIQ::Providers::Vmware::Inventory::Persister::CloudManager < ManageIQ
def initialize_inventory_collections
initialize_cloud_inventory_collections
end

def shared_options
{
:strategy => strategy,
:targeted => targeted?,
:parent => manager.presence
}
end
end

0 comments on commit 482ade1

Please sign in to comment.