Method: OS::Puppet::Fencing::Config#match_node

Defined in:
lib/fencing/config.rb

#match_node(host_name) ⇒ Object



28
29
30
31
32
33
# File 'lib/fencing/config.rb', line 28

def match_node(host_name)
    nodes.each do | node |
        return node if host_name.start_with?(node.host_prefix)
    end
    raise "Could not find configuration for host #{host_name}"
end