libraries/alternate_search.rb
# Returns a single FQDN of a matching node, raising an error if multiple
# nodes match or returning nil if no nodes match
Returns a single FQDN of a matching node, raising an error if multiple
nodes match or returning nil if no nodes match
Returns a single FQDN of a matching node raising an error if multiple nodes match or returning nil if no nodes match
def search_fqdn_optional(search)
		fqdns = search_fqdns(search)
		if fqdns.length > 1
			raise "search_fqdns(#{search.inspect}) returned multiple results"
		end
		fqdns.first
	end
def search_fqdn_optional ( search ) fqdns = search_fqdns ( search ) if fqdns . length > 1 raise "search_fqdns(#{search.inspect}) returned multiple results" end fqdns . first end
Returns a single FQDN of a matching node, raising an error if multiple
nodes match or returning nil if no nodes match
Returns a single FQDN of a matching node raising an error if multiple nodes match or returning nil if no nodes match
search
<not_specific>