Puppet 3.x: Convert a float to an integer

Posted . Visible to the public.

There is no built in possibility to convert a float to an integer. You have to use an inline_template

inline_template('<%= @someFloat.to_i %>')
Claus-Theodor Riegg
License
Source code in this card is licensed under the MIT License.
Posted by Claus-Theodor Riegg to makandra dev (2016-08-26 12:45)