From 1f94b2e1fda2e097bb062a20eadeebc087c0b24e Mon Sep 17 00:00:00 2001 From: Abir Majumdar Date: Thu, 23 Aug 2018 22:55:46 -0700 Subject: [PATCH] changing ref to commit --- scripts/update_puppetfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update_puppetfile b/scripts/update_puppetfile index 3768930..aa95394 100755 --- a/scripts/update_puppetfile +++ b/scripts/update_puppetfile @@ -93,7 +93,7 @@ def update_puppetfile_module_ref(puppetfile_repo, module_info) begin contents = File.read("#{puppetfile_repo.git_work_dir}/Puppetfile") puts "original file contents = #{contents}" - regex = /mod (["'])#{module_info.module_name}\1(.*?)[\n]\s*:ref\s*=>\s*(['"])(\w+|\w+\.\d+\.\d+)\3/m + regex = /mod (["'])#{module_info.module_name}\1(.*?)[\n]\s*:commit\s*=>\s*(['"])(\w+|\w+\.\d+\.\d+)\3/m new_contents = contents.gsub(regex, """ mod '#{module_info.module_name}'\\2