From 12006340ac2148dfa64a4e2650d5e38618529682 Mon Sep 17 00:00:00 2001 From: Nic Klaassen Date: Fri, 6 Dec 2024 10:18:56 -0800 Subject: [PATCH] [v15] add missing plurals for tctl resource commands This is a partial backport of #49171 that just adds a couple plural resource shortcuts that were missing. --- lib/services/resource.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/resource.go b/lib/services/resource.go index 0ef9ae4c9f634..4474170ba8a45 100644 --- a/lib/services/resource.go +++ b/lib/services/resource.go @@ -186,7 +186,7 @@ func ParseShortcut(in string) (string, error) { return types.KindKubeServer, nil case types.KindLock, "locks": return types.KindLock, nil - case types.KindDatabaseServer: + case types.KindDatabaseServer, "db_servers": return types.KindDatabaseServer, nil case types.KindNetworkRestrictions: return types.KindNetworkRestrictions, nil @@ -196,7 +196,7 @@ func ParseShortcut(in string) (string, error) { return types.KindApp, nil case types.KindAppServer, "app_servers": return types.KindAppServer, nil - case types.KindWindowsDesktopService, "windows_service", "win_desktop_service", "win_service": + case types.KindWindowsDesktopService, "windows_service", "win_desktop_service", "win_service", "windows_desktop_services": return types.KindWindowsDesktopService, nil case types.KindWindowsDesktop, "win_desktop": return types.KindWindowsDesktop, nil