configs/configupgrade: Retain any .tf.json files unchanged

We don't change JSON files at all and instead just emit a warning about
them since JSON files are usually generated rather than hand-written and
so any updates need to happen in the generator program rather than in its
output.

However, we do still need to copy them verbatim into the output map so
that we can keep track of them through any subsequent steps.
This commit is contained in:
Martin Atkins 2018-12-03 16:59:42 -08:00
parent 038b295ef1
commit 76221a3a4a
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ func (u *Upgrader) Upgrade(input ModuleSources) (ModuleSources, tfdiags.Diagnost
name, name,
), ),
}) })
ret[name] = src // unchanged
continue continue
} }