Commit e1aae3ad authored by Ted Young's avatar Ted Young

Config.clear resets all instance variable

[Fixes #91719478]
Signed-off-by: default avatarCorey Innis <>
parent 2f4ca1aa
......@@ -42,8 +42,8 @@ module Bosh::Director
attr_reader :db_config, :redis_logger_level
def clear
CONFIG_OPTIONS.each do |option|
self.instance_variable_set("@#{option}".to_sym, nil)
self.instance_variables.each do |ivar|
self.instance_variable_set(ivar, nil)
Thread.list.each do |thr|
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment