post-processor/digitalocean-import: replace deprecated oauth2.NoContext (#9566)

This commit is contained in:
Lars Lehtonen 2020-07-13 08:13:35 -07:00 committed by GitHub
parent d8b67f8520
commit 1400662db7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ func (p *PostProcessor) PostProcess(ctx context.Context, ui packer.Ui, artifact
}
ui.Message(fmt.Sprintf("Completed upload of %s to spaces://%s/%s", source, p.config.SpaceName, p.config.ObjectName))
client := godo.NewClient(oauth2.NewClient(oauth2.NoContext, &apiTokenSource{
client := godo.NewClient(oauth2.NewClient(context.Background(), &apiTokenSource{
AccessToken: p.config.APIToken,
}))