- From: Bryan McLellan <
>
- To:
- Subject: [chef] Re: node.platform_version
- Date: Mon, 30 Jan 2012 20:15:10 -0800
On Mon, Jan 30, 2012 at 3:36 PM, Alan Harper
<
>
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
Archive powered by MHonArc 2.6.16.