Skip to content

Commit 4f962d2

Browse files
tfheendanielsdeleo
authored andcommitted
Make apt and package.rb agree on number of arguments to preseed_package
1 parent 6c43ba4 commit 4f962d2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎chef/lib/chef/provider/package.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def purge_package(name, version)
120120
raise Chef::Exceptions::UnsupportedAction, "#{self.to_s} does not support :purge"
121121
end
122122

123-
def preseed_package(name, version, preseed)
123+
def preseed_package(name, version)
124124
raise Chef::Exceptions::UnsupportedAction, "#{self.to_s} does not support pre-seeding package install/upgrade instructions - don't ask it to!"
125125
end
126126

‎chef/spec/unit/provider/package_spec.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@
315315
end
316316

317317
it "should raise Chef::Exceptions::UnsupportedAction" do
318-
lambda { @provider.preseed_package(@new_resource.name, @new_resource.version, "response_file") }.should raise_error(Chef::Exceptions::UnsupportedAction)
318+
lambda { @provider.preseed_package(@new_resource.name, @new_resource.version) }.should raise_error(Chef::Exceptions::UnsupportedAction)
319319
end
320320
end
321321

0 commit comments

Comments
 (0)