From cbbc525cc43d2435c7a038dbc41b7c283aef3d64 Mon Sep 17 00:00:00 2001 From: Arun S A G Date: Wed, 18 Oct 2017 15:04:59 -0700 Subject: [PATCH] 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 --- attributes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attributes/default.rb b/attributes/default.rb index d64fff4..fd5e530 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -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'] = {