Use a node returned by _wait_until_running and change the if statement so the empty list in node.public_ip doesn't evaluate to True.