Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Make snapshot listing work
Browse files Browse the repository at this point in the history
As snapshot uuids are not in VM properties, snapshot listing does not work.
This patch changes the approch by searching vm uuid in snapshot metadatas and
makes snapshot listing works.

closes GH-55
  • Loading branch information
Joris Dedieu authored and mmoll committed May 5, 2018
1 parent 5591253 commit 912bcb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/foreman_xen/xenserver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def find_snapshots_for_vm(vm)
end
retval = []
tmps.each do |snapshot|
retval << snapshot if vm.snapshots.include?(snapshot.reference)
retval << snapshot if snapshot.snapshot_metadata.include?(vm.uuid)
end
retval
end
Expand Down

0 comments on commit 912bcb0

Please sign in to comment.