diff --git a/lib/puppet/type/ring_account_device.rb b/lib/puppet/type/ring_account_device.rb index 8ea38c88..6e3ea375 100644 --- a/lib/puppet/type/ring_account_device.rb +++ b/lib/puppet/type/ring_account_device.rb @@ -15,7 +15,11 @@ Puppet::Type.newtype(:ring_account_device) do newproperty(:device_name) - newproperty(:weight) + newproperty(:weight) do + munge do |value| + "%.2f" % value + end + end newproperty(:meta) diff --git a/lib/puppet/type/ring_container_device.rb b/lib/puppet/type/ring_container_device.rb index dfad5d9f..e84b31e4 100644 --- a/lib/puppet/type/ring_container_device.rb +++ b/lib/puppet/type/ring_container_device.rb @@ -15,7 +15,11 @@ Puppet::Type.newtype(:ring_container_device) do newproperty(:device_name) - newproperty(:weight) + newproperty(:weight) do + munge do |value| + "%.2f" % value + end + end newproperty(:meta) diff --git a/lib/puppet/type/ring_object_device.rb b/lib/puppet/type/ring_object_device.rb index c9da89aa..afcd6d66 100644 --- a/lib/puppet/type/ring_object_device.rb +++ b/lib/puppet/type/ring_object_device.rb @@ -15,7 +15,11 @@ Puppet::Type.newtype(:ring_object_device) do newproperty(:device_name) - newproperty(:weight) + newproperty(:weight) do + munge do |value| + "%.2f" % value + end + end newproperty(:meta)