From f8c1e0639d93af814793580dc9f50c0f1dd3a321 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 2 Jun 2023 14:45:30 +0300 Subject: [PATCH] [#422] cli: Provide context to NetmapSnapshot() Signed-off-by: Evgenii Stratonikov --- cmd/frostfs-cli/modules/container/policy_playground.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/frostfs-cli/modules/container/policy_playground.go b/cmd/frostfs-cli/modules/container/policy_playground.go index fa10dc10e..65255f9c2 100644 --- a/cmd/frostfs-cli/modules/container/policy_playground.go +++ b/cmd/frostfs-cli/modules/container/policy_playground.go @@ -121,7 +121,7 @@ func (repl *policyPlaygroundREPL) run() error { var prm internalclient.NetMapSnapshotPrm prm.SetClient(cli) - resp, err := internalclient.NetMapSnapshot(prm) + resp, err := internalclient.NetMapSnapshot(repl.cmd.Context(), prm) commonCmd.ExitOnErr(repl.cmd, "unable to get netmap snapshot to populate initial netmap: %w", err) for _, node := range resp.NetMap().Nodes() {