diff options
author | Gene Wood <gene_wood@cementhorizon.com> | 2022-06-26 23:00:36 -0700 |
---|---|---|
committer | Gene Wood <gene_wood@cementhorizon.com> | 2022-06-26 23:00:36 -0700 |
commit | 748b0fc9f3afa62f320469a0a82f875ed7fa30a3 (patch) | |
tree | a8b57d1e93271e86906bbf3b62c4847f067f501b /lib | |
parent | f2a10272c29c80c06143d094c87f182827de12c5 (diff) | |
download | chef-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.rb | 2 |
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 |