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:
parent
20bd78ac98
commit
a83f6744b6
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue