Skip to content
This repository was archived by the owner on May 22, 2023. It is now read-only.

prevent nilpointer #13

Merged
merged 2 commits into from
Jan 20, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
depends 'coopr_dns'
depends 'coopr_firewall'
depends 'coopr_hosts'
depends 'coopr_packages'

depends 'apt'
depends 'yum-epel'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
# limitations under the License.
#

pf = node['platform_family']
%w(install upgrade remove).each do |act|
node['coopr_packages'][node['platform_family']][act].each do |cb|
node['coopr_packages'][pf][act].each do |cb|
package cb do
action act.to_sym
end
Expand Down