Skip to content

Commit

Permalink
Add safe navigation to .include method for automatev2 recipe (#7)
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
  • Loading branch information
Stromweld authored Mar 20, 2023
1 parent aa388b1 commit 7c0a2ae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This file is used to list changes made in each version of the chef_software cookbook.

## 2.1.1 (20232-03-20)

- [Corey Hemminger] - Add safe navigation to .include method for automatev2 recipe

## 2.1.0 (20232-03-17)

- [Corey Hemminger] - Add Integrated Infra-Server user and org config to automate recipe
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
maintainer_email 'hemminger@hotmail.com'
license 'Apache-2.0'
description 'Installs/Configures chef server, chef automate2, chef supermarket'
version '2.1.0'
version '2.1.1'
chef_version '>= 16.4'

issues_url 'https://github.com/Stromweld/chef_software/issues'
Expand Down
2 changes: 1 addition & 1 deletion recipes/chef_automatev2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
end
end

if node['chef_software']['chef_automatev2']['products'].include?('infra-server')
if node['chef_software']['chef_automatev2']['products']&.include?('infra-server')
node['chef_software']['chef_user']&.each do |name, hash|
chef_user name do
hash&.each do |key, value|
Expand Down

0 comments on commit 7c0a2ae

Please sign in to comment.