Skip to content
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

ValueError: not enough values to unpack (expected 2, got 1) #500

Closed
buschNT opened this issue Oct 30, 2023 · 0 comments · Fixed by #590
Closed

ValueError: not enough values to unpack (expected 2, got 1) #500

buschNT opened this issue Oct 30, 2023 · 0 comments · Fixed by #590
Labels
bug 🐛 Something isn't working

Comments

@buschNT
Copy link
Collaborator

buschNT commented Oct 30, 2023

What happened?

I guess I used the --env-from command using an invalid value:

Traceback (most recent call last):
File "", line 1, in
File "gefyra.cli.main", line 70, in main
File "click.core", line 1157, in call
File "click.core", line 1078, in main
File "click.core", line 1688, in invoke
File "click.core", line 1434, in invoke
File "click.core", line 783, in invoke
File "gefyra.cli.run", line 95, in run
File "gefyra.api.utils", line 67, in wrapper
File "gefyra.api.run", line 86, in run
File "gefyra.cluster.utils", line 126, in retrieve_pod_and_container
ValueError: not enough values to unpack (expected 2, got 1)

What did you expect to happen?

Error to be catched.

Please provide the output of gefyra check.

How can we reproduce it (as minimally and precisely as possible)?

gefyra run -i ... -N test --env-from invalid --connection-name default

What Kubernetes setup are you working with?

$ kubectl version
# paste output here

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Anything else we need to know?

No response

@SteinRobert SteinRobert added the bug 🐛 Something isn't working label Feb 23, 2024
SteinRobert added a commit that referenced this issue Apr 23, 2024
* fix(#500): better argument parsing for the CLI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants