'Wait for instance to respond to SSH.'

def wait(self):

    for _ in range(1, 90):
        try:
            self.ssh('id')
            return
        except SubprocessError:
            sleep(10)
            continue
    raise ApplicationError(('Timeout    waiting    for    %s/%s    instance    %s.' % (self.core_ci.platform, self.core_ci.version, self.core_ci.instance_id)))
