terraform: ignore ProviderConfig during walks

This commit is contained in:
Mitchell Hashimoto 2014-06-05 13:05:26 -07:00
parent 975dc47638
commit ebbc0047ce
1 changed files with 8 additions and 0 deletions

View File

@ -111,6 +111,14 @@ func (t *Terraform) diffWalkFn(
return nil
}
switch n.Meta.(type) {
case *config.ProviderConfig:
// Ignore, we don't treat this any differently.
return nil
case *config.Resource:
// Continue
}
r := n.Meta.(*config.Resource)
p := t.mapping[r]
if p == nil {