node[:memory][:total] is invalid on solaris; that's not an ohai object that exists.  This workaround makes this cookbook not burst into flames on platform=solaris2.