diff --git a/builder/googlecompute/config.go b/builder/googlecompute/config.go index 9605f2f4c..b09f1814e 100644 --- a/builder/googlecompute/config.go +++ b/builder/googlecompute/config.go @@ -86,6 +86,10 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) { c.Network = "default" } + if c.NetworkProjectId == "" { + c.NetworkProjectId = c.ProjectId + } + if c.DiskSizeGb == 0 { c.DiskSizeGb = 10 }