]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
catch and rescue from looking up non-existent facts when looking for 'kind'
authorMathias Klette <mathias.klette@magicinternet.de>
Wed, 24 Jun 2015 12:58:48 +0000 (14:58 +0200)
committerMathias Klette <mathias.klette@magicinternet.de>
Wed, 24 Jun 2015 13:02:02 +0000 (15:02 +0200)
commite96a818782c944b4b1af5417d0bcffc08e95aadc
treec0a07a514411edec2b62cdb2e17dc25bc202ecdd
parentf820bb156038f638d8e488286d0c2b92c5636925
catch and rescue from looking up non-existent facts when looking for 'kind'

facter (2.x) only provides facts without interface suffix for
 * ipaddress
 * netmask

'macaddress' and 'network' facts will always have the related interface
name appended. in turns lookupvar throws errors when strict_variables is
enabled.
lib/puppet/parser/functions/has_interface_with.rb