Skip to content

Commit

Permalink
Merge pull request #2137 from florindragos/FACT-2827
Browse files Browse the repository at this point in the history
(FACT-2827) Reset ttls settings on OptionStore reset
  • Loading branch information
oanatmaria authored Oct 15, 2020
2 parents 552946f + 8046336 commit 8674aaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/facter/framework/core/options/option_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class OptionStore
@user_query = []
@block_list = {}
@fact_groups = {}
@ttls = []
@color = true
@timing = false

Expand Down Expand Up @@ -177,6 +178,7 @@ def reset_config
@blocked_facts = []
@fact_groups = {}
@block_list = {}
@ttls = []
@timing = false
end

Expand Down
3 changes: 2 additions & 1 deletion spec/framework/core/options/option_store_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
cache: true,
color: true,
trace: false,
timing: false
timing: false,
ttls: []
)
end
end
Expand Down

0 comments on commit 8674aaa

Please sign in to comment.