bin/hc in hieracles-0.3.5 vs bin/hc in hieracles-0.3.6
- old
+ new
@@ -22,10 +22,13 @@
end
if Hieracles::Format.method_defined? command
begin
config = Hieracles::Config.new opt.options
- node = Hieracles::Node.new fqdn, config
+ if fqdn[/\./]
+ node = Hieracles::Node.new fqdn, config
+ else
+ end
rescue Exception => e
puts "*** Error: #{e.message}"
exit(1)
end
begin