aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/mgrconfig/testdata
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-04-20 14:29:47 +0200
committerDmitry Vyukov <dvyukov@google.com>2021-04-28 07:08:41 +0200
commit77e2b66864e69c17416614228723a1ebd3581ddc (patch)
tree871c35ea161f54935cc6906b8a6f55fed10fd91c /pkg/mgrconfig/testdata
parentde0456bb5ab22e568b8a3ffcce6bf85e2a7de164 (diff)
pkg/config: support comments
Strip lines starting with # before json deserialization. This allows to have comments!
Diffstat (limited to 'pkg/mgrconfig/testdata')
-rw-r--r--pkg/mgrconfig/testdata/gce1.cfg2
1 files changed, 2 insertions, 0 deletions
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",