From 4a4c75e19ccc1a1e9169105b6b4b8f2c3fc24933 Mon Sep 17 00:00:00 2001 From: Helio Machado <0x2b3bfa0+git@googlemail.com> Date: Wed, 1 Feb 2023 01:25:14 +0000 Subject: [PATCH] Add `leo destroy-runner` cloud aliases for compatibility (#736) --- cmd/leo/destroyrunner/destroyrunner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/leo/destroyrunner/destroyrunner.go b/cmd/leo/destroyrunner/destroyrunner.go index ff3ce4af..50929b24 100644 --- a/cmd/leo/destroyrunner/destroyrunner.go +++ b/cmd/leo/destroyrunner/destroyrunner.go @@ -46,9 +46,9 @@ func (o *Options) Run(cmd *cobra.Command, args []string, cloud *common.Cloud) er return aws.ResourceMachineDelete(cmd.Context(), d, nil) case common.ProviderGCP: return gcp.ResourceMachineDelete(cmd.Context(), d, nil) - case common.ProviderAZ: + case common.ProviderAZ, "azure": return azure.ResourceMachineDelete(cmd.Context(), d, nil) - case common.ProviderK8S: + case common.ProviderK8S, "kubernetes": return kubernetes.ResourceMachineDelete(cmd.Context(), d, nil) }