mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Ability to track vApp level status of readiness
This commit is contained in:
parent
6b7ae788cd
commit
7267a739f8
1 changed files with 11 additions and 0 deletions
|
@ -37,6 +37,17 @@ module Fog
|
|||
:href => href
|
||||
)
|
||||
end
|
||||
|
||||
def ready?
|
||||
reload_status # always ensure we have the correct status
|
||||
status != '0'
|
||||
end
|
||||
|
||||
private
|
||||
def reload_status
|
||||
vapp = service.get_vapp(href)
|
||||
self.status = vapp.status
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue