Helmut Schneider
unread,Aug 6, 2018, 3:28:50 PM8/6/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
Hi,
I want to check if a variable is numeric. The manpage says is_numeric
is deprectaed and I shall user validate_legacy. But
<% if validate_legacy(Numeric, 'validate_numeric', $subsetting) { -%>
Error: Could not retrieve catalog from remote server: Error 500 on
SERVER: Server Error: Evaluation Error: Error while evaluating a
Function Call, validate_legacy(validate_numeric) expects a Numeric
value, got String at
/etc/puppetlabs/code/modules/bacula/templates/etc/bacula/bacula-dir.conf
.epp:25:7 on node bsdhelmut1164
What is the proper way to check if something is numeric?
Thank you!