1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

accessing to the parent vapp even if the vm is orphan (query result)

Conflicts:
	lib/fog/vcloud_director/models/compute/vm.rb
This commit is contained in:
Rodrigo Estebanez 2013-10-01 14:45:21 +02:00 committed by Nick Osborn
parent 20bd78ac98
commit a83f6744b6

View file

@ -131,6 +131,11 @@ module Fog
status == 'on'
end
def vapp
# get_by_metadata returns a vm collection where every vapp parent is orpahn
collection.vapp ||= service.vapps.get(vapp_id)
end
end
end
end