Fix problem in tramp-container.el
* lisp/net/tramp-container.el (tramp-kubernetes--context-namespace): Handle nil list elements.
This commit is contained in:
parent
9464a1d386
commit
8b66204707
1 changed files with 5 additions and 4 deletions
|
@ -419,10 +419,11 @@ Obey `tramp-kubernetes-context'"
|
|||
"The kubectl options for context and namespace as string."
|
||||
(mapconcat
|
||||
#'identity
|
||||
`(,(when-let ((context (tramp-kubernetes--current-context vec)))
|
||||
(format "--context=%s" context))
|
||||
,(when-let ((namespace (tramp-kubernetes--namespace vec)))
|
||||
(format "--namespace=%s" namespace)))
|
||||
(delq nil
|
||||
`(,(when-let ((context (tramp-kubernetes--current-context vec)))
|
||||
(format "--context=%s" context))
|
||||
,(when-let ((namespace (tramp-kubernetes--namespace vec)))
|
||||
(format "--namespace=%s" namespace))))
|
||||
" "))
|
||||
|
||||
;;;###tramp-autoload
|
||||
|
|
Loading…
Add table
Reference in a new issue