Skip to content

Commit cccf11b

Browse files
authored
Merge pull request #647 from mplsgrant/2024-10-check-for-kube-folder
users: check for ~/.kube and create if needed
2 parents e12dc8e + 2713057 commit cccf11b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/warnet/users.py

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def auth(auth_config):
2222

2323
is_first_config = False
2424
if not os.path.exists(KUBECONFIG):
25+
os.makedirs(os.path.dirname(KUBECONFIG), exist_ok=True)
2526
try:
2627
write_kubeconfig(auth_config, KUBECONFIG)
2728
is_first_config = True

0 commit comments

Comments
 (0)