From: Eshel Yaron Date: Wed, 14 Aug 2024 12:45:46 +0000 (+0200) Subject: ; (kubed-display-resource): Only ask for namespace when needed. X-Git-Tag: v0.3.2~17 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3ef32c036462e9a9d932226e96206e48512e9d0c;p=kubed.git ; (kubed-display-resource): Only ask for namespace when needed. --- diff --git a/kubed.el b/kubed.el index ab05e11..8fad0ec 100644 --- a/kubed.el +++ b/kubed.el @@ -251,7 +251,7 @@ prompt for CONTEXT as well." (unless type (setq type (kubed-read-resource-type "Type of resource to display" nil context))) - (unless namespace + (when (and (kubed-namespaced-p type context) (null namespace)) (setq namespace (let ((cur (kubed-local-namespace context))) (if current-prefix-arg