From f49e7e5de735c6846347e14da6b18aef637fe3b1 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Thu, 6 Feb 2020 13:11:33 +0100
Subject: [PATCH] fix(helm-values): ignore duplicate keys in yaml

---
 lib/manager/helm-values/extract.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/manager/helm-values/extract.ts b/lib/manager/helm-values/extract.ts
index 84bd266d4f..b8d1b120bc 100644
--- a/lib/manager/helm-values/extract.ts
+++ b/lib/manager/helm-values/extract.ts
@@ -40,7 +40,7 @@ export function extractPackageFile(content: string): PackageFile {
   try {
     // a parser that allows extracting line numbers would be preferable, with
     // the current approach we need to match anything we find again during the update
-    const parsedContent = yaml.safeLoad(content);
+    const parsedContent = yaml.safeLoad(content, { json: true });
 
     logger.debug(
       { parsedContent },
-- 
GitLab