Skip to content

Commit

Permalink
Merge pull request #316 from cben/tag-mapper
Browse files Browse the repository at this point in the history
Use new ContainerLabelTagMapping::Mapper interface
  • Loading branch information
agrare authored Oct 17, 2017
2 parents 4637d98 + 81aacb9 commit 496dd35
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ def initialize(ems, options = Config::Options.new)
@data_index = {}
@known_flavors = Set.new
@options = options
@label_tag_mapping = ContainerLabelTagMapping.cache
@tag_mapper = ContainerLabelTagMapping.mapper
@data[:tag_mapper] = @tag_mapper
end

def ems_inv_to_hashes
Expand All @@ -37,7 +38,7 @@ def ems_inv_to_hashes
private

def map_labels(model_name, labels)
ContainerLabelTagMapping.map_labels(@label_tag_mapping, model_name, labels)
@tag_mapper.map_labels(model_name, labels)
end

def get_flavors
Expand Down

0 comments on commit 496dd35

Please sign in to comment.