emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 8b662047074: Fix problem in tramp-container.el


From: Michael Albinus
Subject: master 8b662047074: Fix problem in tramp-container.el
Date: Thu, 8 Aug 2024 11:29:53 -0400 (EDT)

branch: master
commit 8b662047074f7413c280c9092d1c39763f8b0e5b
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>

    Fix problem in tramp-container.el
    
    * lisp/net/tramp-container.el (tramp-kubernetes--context-namespace):
    Handle nil list elements.
---
 lisp/net/tramp-container.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/lisp/net/tramp-container.el b/lisp/net/tramp-container.el
index 57c34a1b8e4..fd82e4516b8 100644
--- a/lisp/net/tramp-container.el
+++ b/lisp/net/tramp-container.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]