From cc544b6034efc61407d85766e333452a99e5f787 Mon Sep 17 00:00:00 2001 From: Reid Vandewiele Date: Thu, 26 Oct 2017 16:52:07 -0700 Subject: [PATCH] Account for missing Puppetfile `mod` options The `mod` method in a Puppetfile supports two additional parameters which are not accounted for here: local, and install_path. This commit does not do anything with the data, but it allows r10kdiff to parse files that use these directives without raising an exception. --- lib/r10kdiff.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/r10kdiff.rb b/lib/r10kdiff.rb index 13ed281..e24adc4 100755 --- a/lib/r10kdiff.rb +++ b/lib/r10kdiff.rb @@ -23,7 +23,7 @@ def mod(name, args={}) end class PuppetModule - def initialize(name, ref:nil, git:nil, forge:nil, tag:nil, commit:nil, branch:nil) + def initialize(name, ref:nil, git:nil, forge:nil, tag:nil, commit:nil, branch:nil, install_path:nil, local:nil) @name = name @ref = ref @git = git