ruby - Puppet stdlib "range()" is not working as expected -
according puppet stdlib docs, range() supposed homecoming array of values. however, not appear working properly:
class rangetest { $r1 = range(1,5) $r2 = [1,2,3,4,5] if $r1 == $r2 { notify { "same" : } } else { notify { "not same" : } } }
the result of above test returns "not same". trying utilize function, difference(), takes 2 arrays arguments when seek this:
difference($r1,$r2) - assuming $r1 , $r2 have values above illustration
it returns: difference(): requires 2 arrays).
ruby node.js puppet
No comments:
Post a Comment