providers/google: compute_firewall partial state

This commit is contained in:
Mitchell Hashimoto 2014-08-26 20:33:53 -07:00
parent bfbb9201c4
commit 3e4b7b862a
1 changed files with 4 additions and 0 deletions

View File

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