-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure of "minikube ip" returns "<nil>" with exit code 0 #8646
Comments
@pre : thanks for reporting this issue, it should not return |
The problem is in the
|
In case it matters, I have Minikube v1.11.0 on MacOS 10.15.5 with Hyperkit. |
I'm taking a look at fixing this. But it's my first minikube contribution so if someone wants to take it first/take it over, let me know. |
@Dean-Coakley are you still interested in making a PR for this ? |
cc: @sharifelgamal |
@medyagh I opened a PR that seems to resolve the issue. |
Steps to reproduce the issue:
Expected: exit code != 0 with empty output
Actual: exit code == 0
Output:
<nil>
Minikube v1.11.0
Why is this a problem?
When
minikube ip
is used in a script, it'd be straightforward to read the exit code for whether the command succeeded. However, now the exit code is always "success" so the script needs to check for failure against a flaky string<nil>
which may change at a later Minikube release.The text was updated successfully, but these errors were encountered: