Use the attribute instead of method to get platform_family

Other cookbooks have switched to using the node attribute
https://github.com/openstack/cookbook-openstack-common/blob/master/attributes/default.rb#L292
Using platform_family breaks with chef-client 13.x

Closes-Bug: #1724987

Change-Id: I02fcb5d9403210d913e85487de5ef0dae6066bdc
This commit is contained in:
Arun S A G 2017-10-18 15:04:59 -07:00
parent 9a8b6424ba
commit cbbc525cc4
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ default['openstack']['identity']['user'] = 'keystone'
default['openstack']['identity']['group'] = 'keystone'
# platform defaults
case platform_family
case node['platform_family']
when 'fedora', 'rhel' # :pragma-foodcritic: ~FC024 - won't fix this
# platform specific package and service name options
default['openstack']['identity']['platform'] = {