Merge pull request #4147 from minimum2scp/fix/googlecompute-export-scopes

googlecompute-export: Fixed scopes to run gcloud, gsutil in startup script
This commit is contained in:
Rickard von Essen 2016-11-10 17:08:05 +01:00 committed by GitHub
commit 7273350214
1 changed files with 5 additions and 0 deletions

View File

@ -79,6 +79,11 @@ func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (pac
Zone: zone,
Network: "default",
RawStateTimeout: "5m",
Scopes: []string{
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/devstorage.full_control",
},
}
exporterConfig.CalcTimeout()