Skip to content

Commit

Permalink
Merge pull request ManageIQ#16370 from cben/blank-mapped-tags
Browse files Browse the repository at this point in the history
Do unassign tags when mapped tags list becomes empty
(cherry picked from commit 48675e0)

https://bugzilla.redhat.com/show_bug.cgi?id=1510096
  • Loading branch information
agrare authored and d-m-u committed Jun 6, 2018
1 parent 7f231d2 commit babe505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/ems_refresh/save_inventory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def save_vms_inventory(ems, hashes, target = nil)
# should have a single :tags key, or a simple Array of hashes.
#
def save_tags_inventory(object, collection, _target = nil)
return if collection.blank?
return if collection.nil?
tags = collection.kind_of?(Hash) ? collection[:tags] : collection
ContainerLabelTagMapping.retag_entity(object, tags)
rescue => err
Expand Down

0 comments on commit babe505

Please sign in to comment.