On 27/04/09 18:50, Pete Emerson wrote: > I think I'm running into situations where my variables are being used as > floats instead of strings. > > For example, if my puppet_node_classifier prints this: > --- > parameters: > version: 0.10 > > and my command is this: > > command => "/bin/rpm -hiv http://server/package-$version.x86_64.rpm" > > I think it will attempt to install version 0.1 of my package instead of > version 0.10. Is there a way to force the variable to be treated as a > string instead of a float in this type of situation?
Did you try double-quoting the number as in: > --- > parameters: > version: "0.10" -- Brice Figureau Days of Wonder http://www.daysofwonder.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---