From 1f96aa5d00970f9685dd095f3d9d8294fb60d005 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Sun, 25 Oct 2020 21:12:41 +0100 Subject: [PATCH] rubocop: autofix --- spec/classes/init_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/classes/init_spec.rb b/spec/classes/init_spec.rb index eb2d6e6c..b0e0204e 100644 --- a/spec/classes/init_spec.rb +++ b/spec/classes/init_spec.rb @@ -256,7 +256,7 @@ # TODO: This should be generated with something like `lookup('yum::repos').keys`, # but the setup for `Puppet::Pops::Lookup` is to complicated to be worth it as of # this writing (2017-04-11). For now, we just pull from `repos.yaml`. - repos_yaml_data = YAML.load(File.read('./spec/fixtures/modules/yum/data/repos.yaml')) + repos_yaml_data = YAML.safe_load(File.read('./spec/fixtures/modules/yum/data/repos.yaml')) supported_repos = repos_yaml_data['yum::repos'].keys supported_repos.each do |supported_repo|