Yuvipanda has submitted this change and it was merged. Change subject: labs: Use YAML.load instead of .parse for loading YAML ......................................................................
labs: Use YAML.load instead of .parse for loading YAML Change-Id: Iff3601a0fb5d416acc4a7770adff60b6edf29463 --- M modules/wmflib/lib/hiera/httpcache.rb 1 file changed, 2 insertions(+), 1 deletion(-) Approvals: Yuvipanda: Looks good to me, approved jenkins-bot: Verified diff --git a/modules/wmflib/lib/hiera/httpcache.rb b/modules/wmflib/lib/hiera/httpcache.rb index ca5e8f6..1c6abb5 100644 --- a/modules/wmflib/lib/hiera/httpcache.rb +++ b/modules/wmflib/lib/hiera/httpcache.rb @@ -68,7 +68,8 @@ end # We shamelessly throw exceptions here, and catch them upper in the chain # specifically in Hiera::Mwcache.stale? and Hiera::Mwcache.read - body = YAML.parse(res.body) + # FIXME: use safe_load here somehow? + body = YAML.load(res.body) body['hiera'] end -- To view, visit https://gerrit.wikimedia.org/r/310689 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Iff3601a0fb5d416acc4a7770adff60b6edf29463 Gerrit-PatchSet: 2 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Yuvipanda <yuvipa...@wikimedia.org> Gerrit-Reviewer: Yuvipanda <yuvipa...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits