Skip to content

Commit

Permalink
Add options to clear classifications when calling tag_details
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalis committed May 22, 2018
1 parent 35b479e commit 6749091
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/miq_expression.rb
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,9 @@ def self._model_details(relats, opts)

def self.tag_details(path, opts)
result = []
if opts[:clear_classifications]
@classifications = nil
end
@classifications ||= categories
@classifications.each do |name, cat|
prefix = path.nil? ? "managed" : [path, "managed"].join(".")
Expand Down

0 comments on commit 6749091

Please sign in to comment.