This message was deleted.
# puppet
s
This message was deleted.
b
equivalent to what?
another way of validating a variable? Another datatype?
k
We are using something like that: if ( $available_named_users =~ Stdlib:Compat:Hash ) and ( $enabled_named_users =~ Stdlib:Compat:Array ) { Stdlib:Compat:Hash was removed in stdlib v9.0.0
b
what do you want to do, check the datatype?
k
Yes, is $available_named_user a Hash
b
just check for the native datatype:
Copy code
if ( $available_named_users =~ Hash ) and ( $enabled_named_users =~ Array ) {
k
makes sense...
👍 1
Thanks.
is_hash is also removed in stdlib 9.0.0 😕
b
yes \o/
all this legacy stuff that's deprecated since years 🙂
k
Yeah, we wrote this legacy code in 2016 or 2017 😉
b
back then it was already legacy 🙂
k
i will check now all modules (~170 ) with a different r10k branch and stdlib v9.0.0 and fix those issues
👍 1
b
sounds good, let me know if you run into more errors
k
what is for puppet 8 is the new way to use ::kernel facts.kernel (dot notation in hiera?)
b
yes