Skip to content

Commit

Permalink
Merge pull request #405 from borod108/bugs/ssa_collect_snap_disks
Browse files Browse the repository at this point in the history
Add a method for SSA

(cherry picked from commit 577c0a6)

https://bugzilla.redhat.com/show_bug.cgi?id=1535782
  • Loading branch information
masayag authored and simaishi committed Sep 3, 2019
1 parent 36820f4 commit 2257f78
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/models/manageiq/providers/redhat/inventory/collector.rb
Expand Up @@ -158,6 +158,12 @@ def collect_dc_domains(dc)
end
end

def collect_disks_of_snapshot(snapshot)
manager.with_provider_connection(VERSION_HASH) do |connection|
connection.follow_link(snapshot.disks)
end
end

def collect_vm_disks(vm)
manager.with_provider_connection(VERSION_HASH) do |connection|
disk_attachments = connection.follow_link(vm.disk_attachments)
Expand Down

0 comments on commit 2257f78

Please sign in to comment.