Merge "Wait for midolman to start"

This commit is contained in:
Jenkins 2016-08-29 14:57:41 +00:00 committed by Gerrit Code Review
commit dd070a7d49

View File

@ -135,6 +135,7 @@ Puppet::Type.type(:midonet_host_registry).provide(:midonet_api_caller) do
def call_get_host()
begin
sleep 15
return File.read('/etc/midonet_host_id.properties').split('=')[1].sub("\n","")
rescue
raise 'Midonet agent is not running on the host you are trying to register'