From 65b749cd2e8c612a6ecabbe72eb1c29e9c53ced3 Mon Sep 17 00:00:00 2001 From: Gyanendra Mishra Date: Wed, 4 Oct 2023 12:28:55 +0100 Subject: [PATCH] fix: bug where we passed cloud user id for cloud instance id (#1465) ## Description: Metrics would show cloud user id instead of cloud instance id as we passed the wrong value; this fixes it ## Is this change user facing? NO --- cli/cli/commands/run/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cli/commands/run/run.go b/cli/cli/commands/run/run.go index 3298fa1202..319eabc17c 100644 --- a/cli/cli/commands/run/run.go +++ b/cli/cli/commands/run/run.go @@ -316,7 +316,7 @@ func run( } else { if store.IsRemote(currentContext) { cloudUserId = currentContext.GetRemoteContextV0().GetCloudUserId() - cloudInstanceId = currentContext.GetRemoteContextV0().GetCloudUserId() + cloudInstanceId = currentContext.GetRemoteContextV0().GetCloudInstanceId() } }