    # File lib/chef/platform.rb, line 292
          def find_platform_and_version(node)
            platform = nil
            version = nil

            if node[:platform]
              platform = node[:platform]
            elsif node.attribute?("os")
              platform = node[:os]
            end

            raise ArgumentError, "Cannot find a platform for #{node}" unless platform

            if node[:platform_version]
              version = node[:platform_version]
            elsif node[:os_version]
              version = node[:os_version]
            elsif node[:os_release]
              version = node[:os_release]
            end

            raise ArgumentError, "Cannot find a version for #{node}" unless version

            return platform, version
          end