Node.platform_version

Hi All,

I have some nodes running Ubuntu, others running Debian. I notice on Ubuntu platform_version returns a decimal number (10.04), but Debian returns a string.

I want to clarify which is correct as some cookbooks (including opscodes), expect a float to be returned, and want to file tickets in the right place.

Thanks,
Alan

On Mon, Jan 30, 2012 at 3:36 PM, Alan Harper alan@aussiegeek.net wrote:

I have some nodes running Ubuntu, others running Debian. I notice on Ubuntu platform_version returns a decimal number (10.04), but Debian returns a string.

I want to clarify which is correct as some cookbooks (including opscodes), expect a float to be returned, and want to file tickets in the right place.

platform_version has always returned a numeric value that is
comparable, e.g. 'if platform == "ubuntu" && platform_version >=
10.04' This is why it sometimes has returned a version even when a
string may be more familiar to the end user, such as in the case of
Windows or Debian.

Bryan