'Wait for the instance to become ready.'

def wait(self):

    for _ in range(1, 90):
        if self.get().running:
            return
        time.sleep(10)
    raise ApplicationError(('Timeout    waiting    for    %s/%s    instance    %s.' % (self.platform, self.version, self.instance_id)))
