providers/google: compute_firewall partial state
This commit is contained in:
parent
bfbb9201c4
commit
3e4b7b862a
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue