From bb4d9615b9823b853f8a4aba3c72290d400b8715 Mon Sep 17 00:00:00 2001
From: Abir Majumdar <beersy@gmail.com>
Date: Fri, 24 Aug 2018 07:31:34 -0700
Subject: [PATCH] Update update_puppetfile.rb

---
 scripts/update_puppetfile.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/update_puppetfile.rb b/scripts/update_puppetfile.rb
index c409b80..089c030 100755
--- a/scripts/update_puppetfile.rb
+++ b/scripts/update_puppetfile.rb
@@ -48,10 +48,10 @@ def get_module_info_from_args(mod_name, mod_git_ref, mod_workspace, mod_control_
 end
 
 # instantiate and return a PuppetfileRepo object with git info
-def checkout_puppetfile_repo(puppetfile_branch, module_info, control_repo)
+def checkout_puppetfile_repo(puppetfile_branch, module_info)
 
   repo = PuppetfileRepo.new
-  puppetfile_git_repo = control_repo
+  puppetfile_git_repo = module_info.module_control_repo
   git_work_dir = File.expand_path(module_info.module_workspace + "/p_file_repo")
   git_dir = git_work_dir + "/.git"
   repo.git_work_dir = git_work_dir