Then just use vm.wait_for_login(nic_index=1, timeout=login_timeout) you don't need the "_ = " things here :)