lib/beaker/hypervisor/docker.rb in beaker-2.1.0 vs lib/beaker/hypervisor/docker.rb in beaker-2.2.0

- old
+ new

@@ -41,15 +41,18 @@ else ip = container.json["NetworkSettings"]["Ports"]["22/tcp"][0]["HostIp"] end port = container.json["NetworkSettings"]["Ports"]["22/tcp"][0]["HostPort"] + forward_ssh_agent = @options[:forward_ssh_agent] || false + # Update host metadata host['ip'] = ip host['port'] = port host['ssh'] = { :password => root_password, :port => port, + :forward_agent => forward_ssh_agent, } @logger.debug("node available as ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@#{ip} -p #{port}") host['docker_container'] = container host['docker_image'] = image