lib/blender/manifest/nodes.rb in server-blender-manifest-0.0.13 vs lib/blender/manifest/nodes.rb in server-blender-manifest-0.0.14
- old
+ new
@@ -39,9 +39,10 @@
end
# resolves host name using 'host' executable
# @return host's IP by its name or nil if not found
def host_ip(name)
+ return nil unless name && !name.empty?
res = `host #{name}`.split("\n").grep(/has address/).first
res && res.split.last
end
# define node and conditionally execute code block only on the specific node
\ No newline at end of file