puppetlabs/puppetlabs-stdlib — pull request #85 by dalen (2012-08-07 21:49:22+00:00)
Title: (#15872) Add to_bytes function

Converts a string like "2 MB" to the value in bytes. Useful for
comparisons on facts that return a human readable number instead of
machine readable.