lib/bolt/transport/docker/connection.rb in bolt-1.15.0 vs lib/bolt/transport/docker/connection.rb in bolt-1.16.0
- old
+ new
@@ -9,9 +9,11 @@
class Connection
def initialize(target)
# lazy-load expensive gem code
require 'docker'
+ raise Bolt::ValidationError, "Target #{target.name} does not have a host" unless target.host
+
@target = target
@logger = Logging.logger[target.host]
end
def connect