core: Error if provider apply result is inconsistent with plan action
core: Error if provider apply result is inconsistent with plan action

If the plan called for us to delete but the result isn't null then that's
suspect, because it suggests the object wasn't deleted after all.
Likewise, no other apply action should cause the the result to be missing.

In order to avoid the confusing user experience that results in this case
(since it often looks like Terraform did nothing at all) we'll produce
some errors about it, but still update the state to reflect what the
provider returned anyway to allow for debugging and recovery.

nlamirault/terraform,apparentlymart/terraform,youhong316/terraform,luis-silva/terraform,pradeepbhadani/terraform,ewbankkit/terraform,pryorda/terraform,pdecat/terraform,pdecat/terraform,heimweh/terraform,brandontosch/terraform,ewbankkit/terraform,luis-silva/terraform,youhong316/terraform,tommynsong/terraform,VladRassokhin/terraform,apparentlymart/terraform,hashicorp/terraform,VladRassokhin/terraform,hashicorp/terraform,youhong316/terraform,iljaskevic/terraform,VladRassokhin/terraform,pryorda/terraform,brandontosch/terraform,gechr/terraform,nlamirault/terraform,nlamirault/terraform,tommynsong/terraform,ewbankkit/terraform,mattray/terraform,gechr/terraform,iljaskevic/terraform,brandontosch/terraform,heimweh/terraform,drebes/terraform,drebes/terraform,gechr/terraform,iljaskevic/terraform,tpounds/terraform,tpounds/terraform,VladRassokhin/terraform,brandontosch/terraform,rnaveiras/terraform,luis-silva/terraform,apparentlymart/terraform,luis-silva/terraform,brandontosch/terraform,mattray/terraform,drebes/terraform,pradeepbhadani/terraform,rnaveiras/terraform,youhong316/terraform,tpounds/terraform,apparentlymart/terraform,iljaskevic/terraform,apparentlymart/terraform,heimweh/terraform,pdecat/terraform,drebes/terraform,rnaveiras/terraform,heimweh/terraform,mattray/terraform,tpounds/terraform,pryorda/terraform,mattray/terraform,ewbankkit/terraform,heimweh/terraform,pradeepbhadani/terraform,tommynsong/terraform,pdecat/terraform,hashicorp/terraform