providers/google: compute_firewall partial state

This commit is contained in:
Mitchell Hashimoto 2014-08-26 20:33:53 -07:00
parent 5049f0b111
commit 6cf9975f46

View File

@ -164,6 +164,8 @@ func resourceComputeFirewallRead(d *schema.ResourceData, meta interface{}) error
func resourceComputeFirewallUpdate(d *schema.ResourceData, meta interface{}) error {
config := meta.(*Config)
d.Partial(true)
firewall, err := resourceFirewall(d, meta)
if err != nil {
return err
@ -195,6 +197,8 @@ func resourceComputeFirewallUpdate(d *schema.ResourceData, meta interface{}) err
return OperationError(*op.Error)
}
d.Partial(false)
return resourceComputeFirewallRead(d, meta)
}