lib/bolt/target.rb in bolt-0.17.1 vs lib/bolt/target.rb in bolt-0.17.2

- old
+ new

@@ -12,21 +12,22 @@ def initialize(uri, options = nil) @uri = uri @uri_obj = parse(uri) @options = options || {} + @options.freeze end def update_conf(conf) @protocol = conf[:transport] t_conf = conf[:transports][protocol.to_sym] # Override url methods - url_keys = %i[user password port] - @user = t_conf[:user] - @password = t_conf[:password] - @port = t_conf[:port] + @user = t_conf['user'] + @password = t_conf['password'] + @port = t_conf['port'] + url_keys = %w[user password port] @options = t_conf.reject { |k, _| url_keys.include?(k) }.merge(@options) self end