From de7160220f66221d9fe8eddae7fd67f0d06143e4 Mon Sep 17 00:00:00 2001 From: Artur Reznikov Date: Thu, 17 Oct 2024 12:59:47 -0700 Subject: [PATCH] fix inventory err for local --- cmd/blockchaincmd/deploy.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/blockchaincmd/deploy.go b/cmd/blockchaincmd/deploy.go index 0f86f6d0f..943ee2617 100644 --- a/cmd/blockchaincmd/deploy.go +++ b/cmd/blockchaincmd/deploy.go @@ -817,8 +817,12 @@ func deployBlockchain(cmd *cobra.Command, args []string) error { return err } } - - if !useLocalMachine { + // load cluster config + clusterConfig, err := app.GetClusterConfig(clusterName) + if err != nil { + return fmt.Errorf("failed to get cluster config: %w", err) + } + if !useLocalMachine && !clusterConfig.Local { if err = node.SyncSubnet(app, clusterName, blockchainName, true, nil); err != nil { return err }