From c46ecded04cbaa4622803af6576aaa308aef56f0 Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Sun, 2 Jun 2024 13:21:53 +0200 Subject: [PATCH] Add Lakehouse monitoring --- bundle/config/mutator/run_as.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bundle/config/mutator/run_as.go b/bundle/config/mutator/run_as.go index e4091399f..50bbb7c1b 100644 --- a/bundle/config/mutator/run_as.go +++ b/bundle/config/mutator/run_as.go @@ -88,12 +88,12 @@ func validateRunAs(b *bundle.Bundle) diag.Diagnostics { // Monitors do not support run_as in the API. if len(b.Config.Resources.QualityMonitors) > 0 { - return errUnsupportedResourceTypeForRunAs{ - resourceType: "quality_monitors", - resourceLocation: b.Config.GetLocation("resources.quality_monitors"), - currentUser: b.Config.Workspace.CurrentUser.UserName, - runAsUser: identity, - } + return reportRunAsNotSupported( + "quality_monitors", + b.Config.GetLocation("resources.quality_monitors"), + b.Config.Workspace.CurrentUser.UserName, + identity, + ) } return nil