summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGene Wood <gene_wood@cementhorizon.com>2022-06-26 23:00:36 -0700
committerGene Wood <gene_wood@cementhorizon.com>2022-06-26 23:00:36 -0700
commit748b0fc9f3afa62f320469a0a82f875ed7fa30a3 (patch)
treea8b57d1e93271e86906bbf3b62c4847f067f501b /lib
parentf2a10272c29c80c06143d094c87f182827de12c5 (diff)
downloadchef-748b0fc9f3afa62f320469a0a82f875ed7fa30a3.tar.gz
Fix call to install_snaps which is missing an argument
This fixes the case of calling the `snap_package` resource without a `source` attribute which triggers a ruby error of `ArgumentError: wrong number of arguments (given 1, expected 2)` Fixes #13024 Signed-off-by: Gene Wood <gene_wood@cementhorizon.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/provider/package/snap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/snap.rb b/lib/chef/provider/package/snap.rb
index 81af09e04d..4da7040ec2 100644
--- a/lib/chef/provider/package/snap.rb
+++ b/lib/chef/provider/package/snap.rb
@@ -66,7 +66,7 @@ class Chef
if new_resource.source
install_snap_from_source(names, new_resource.source)
else
- install_snaps(names)
+ install_snaps(names, versions)
end
end