Fix nil pointer dereference updating project labels.

This commit is contained in:
Kit Ewbank 2018-01-27 16:55:39 -05:00 committed by GitHub
parent 838296e155
commit 31bc09279d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -289,7 +289,7 @@ func resourceGoogleProjectUpdate(d *schema.ResourceData, meta interface{}) error
// Do Update on project
p, err = config.clientResourceManager.Projects.Update(p.ProjectId, p).Do()
if err != nil {
return fmt.Errorf("Error updating project %q: %s", p.Name, err)
return fmt.Errorf("Error updating project %q: %s", project_name, err)
}
}
d.Partial(false)