From 74d7932b7b57a4d276eae26d1dd4ad8d79a08df4 Mon Sep 17 00:00:00 2001 From: Abir Majumdar Date: Thu, 23 Aug 2018 22:59:59 -0700 Subject: [PATCH] Update update_puppetfile --- scripts/update_puppetfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/update_puppetfile b/scripts/update_puppetfile index aa95394..6c31ad9 100755 --- a/scripts/update_puppetfile +++ b/scripts/update_puppetfile @@ -11,10 +11,9 @@ USAGE = <<-EOS Name of the module to update in the Puppetfile - - The git ref (branch, tag, sha) that we want to set for the module_name in + + The git commit sha that we want to set for the module_name in the Puppetfile. - NOTE: production Puppetfile will only have release tags as git refs The module's workspace where we will clone the puppetfile repo into @@ -97,7 +96,7 @@ def update_puppetfile_module_ref(puppetfile_repo, module_info) new_contents = contents.gsub(regex, """ mod '#{module_info.module_name}'\\2 - :ref => '#{module_info.module_git_ref}' + :commit => '#{module_info.module_git_ref}' """.strip) puts "after regex, file contents = #{new_contents}"