-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Description
existing file, not sure its origin but this is on ubuntu using minikube.
$ cat ~/.kube/config
apiVersion: v1
clusters: null
contexts: null
current-context: ""
kind: Config
preferences: {}
users: null
warnet auth fails trying to "merge" the incoming warnet auth file (for battle of galen erso) with this existing file (I think)
Traceback (most recent call last):
File "/home/stacie/Documents/bitcoin-dev-project/warnet/MIT_Hackathon_Prep/.venv/bin/warnet", line 8, in <module>
sys.exit(cli())
^^^^^
File "/home/stacie/Documents/bitcoin-dev-project/warnet/MIT_Hackathon_Prep/.venv/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/stacie/Documents/bitcoin-dev-project/warnet/MIT_Hackathon_Prep/.venv/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/stacie/Documents/bitcoin-dev-project/warnet/MIT_Hackathon_Prep/.venv/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/stacie/Documents/bitcoin-dev-project/warnet/MIT_Hackathon_Prep/.venv/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/stacie/Documents/bitcoin-dev-project/warnet/MIT_Hackathon_Prep/.venv/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/stacie/Documents/bitcoin-dev-project/warnet/MIT_Hackathon_Prep/.venv/lib/python3.12/site-packages/warnet/users.py", line 44, in auth
merge_entries(category, base_config, auth_config)
File "/home/stacie/Documents/bitcoin-dev-project/warnet/MIT_Hackathon_Prep/.venv/lib/python3.12/site-packages/warnet/users.py", line 81, in merge_entries
base_entry_names = {entry[name] for entry in base_list} # Extract existing names
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
The solution was just to delete the existing ~/.kube/config file and then re-run warnet auth ...
Metadata
Metadata
Assignees
Labels
No labels