Ability to track vApp level status of readiness

This commit is contained in:
Chirag Jog 2013-02-02 12:10:10 +05:30
parent 6b7ae788cd
commit 7267a739f8
1 changed files with 11 additions and 0 deletions

View File

@ -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