From 1e8988e835bb1e7bbc0229c59cb4614300cd1a05 Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Wed, 5 Mar 2025 13:41:57 -0500 Subject: [PATCH] fixes bug when importing automations This commit fixes a bug when attempting to import automations. The app panics with the following: `panic: interface conversion: interface {} is *flags.AssetImportCommon, not flags.AssetImportCommon` This commit resolves the issue. --- internal/runners/automations.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/runners/automations.go b/internal/runners/automations.go index e35abec7..f01813fe 100644 --- a/internal/runners/automations.go +++ b/internal/runners/automations.go @@ -243,7 +243,7 @@ func (r *AutomationRunner) CopyTo(profile string, in any, replace bool) (any, er func (r *AutomationRunner) Import(in Request) (*Response, error) { logger.Trace() - common := in.Common.(flags.AssetImportCommon) + common := in.Common.(*flags.AssetImportCommon) var automation services.Automation