Update update_puppetfile.rb

This commit is contained in:
Abir Majumdar 2018-08-24 07:31:34 -07:00 committed by GitHub
parent 23813d939f
commit bb4d9615b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,10 +48,10 @@ def get_module_info_from_args(mod_name, mod_git_ref, mod_workspace, mod_control_
end end
# instantiate and return a PuppetfileRepo object with git info # 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 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_work_dir = File.expand_path(module_info.module_workspace + "/p_file_repo")
git_dir = git_work_dir + "/.git" git_dir = git_work_dir + "/.git"
repo.git_work_dir = git_work_dir repo.git_work_dir = git_work_dir