From 77e2b66864e69c17416614228723a1ebd3581ddc Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 20 Apr 2021 14:29:47 +0200 Subject: pkg/config: support comments Strip lines starting with # before json deserialization. This allows to have comments! --- pkg/mgrconfig/testdata/gce1.cfg | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/mgrconfig/testdata') diff --git a/pkg/mgrconfig/testdata/gce1.cfg b/pkg/mgrconfig/testdata/gce1.cfg index 44b4eae12..805a1f418 100644 --- a/pkg/mgrconfig/testdata/gce1.cfg +++ b/pkg/mgrconfig/testdata/gce1.cfg @@ -1,4 +1,6 @@ +# This is a test comment in the config. { + # This is a test comment in the config. "name": "windows-gce", "target": "windows/amd64", "http": ":10000", -- cgit mrf-deployment