From 76221a3a4a21be7d32379d9e45ec06831f965fc2 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Mon, 3 Dec 2018 16:59:42 -0800 Subject: [PATCH] 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. --- configs/configupgrade/upgrade.go | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/configupgrade/upgrade.go b/configs/configupgrade/upgrade.go index 0514245c6..e50a0dcb9 100644 --- a/configs/configupgrade/upgrade.go +++ b/configs/configupgrade/upgrade.go @@ -93,6 +93,7 @@ func (u *Upgrader) Upgrade(input ModuleSources) (ModuleSources, tfdiags.Diagnost name, ), }) + ret[name] = src // unchanged continue }