Switch on node['platform_family'] instead of node['platform'].