Pass context to all remote.Client operations (#786)

Signed-off-by: Marcin Wyszynski <marcin.pixie@gmail.com>
This commit is contained in:
Marcin Wyszynski
2023-10-25 12:37:58 +02:00
committed by GitHub
parent da1ba56b41
commit 275dd116f9
74 changed files with 321 additions and 287 deletions

View File

@@ -225,7 +225,7 @@ func (c *InitCommand) Run(args []string) int {
return 1
}
if err := sMgr.RefreshState(); err != nil {
if err := sMgr.RefreshState(ctx); err != nil {
c.Ui.Error(fmt.Sprintf("Error refreshing state: %s", err))
return 1
}