Skip to content

Commit c9b36ef

Browse files
author
Kevin Paulisse
committed
Add alias to resource hash if an alias is defined
1 parent 04019a9 commit c9b36ef

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/octocatalog-diff/catalog.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,10 @@ def build_resource_hash
272272
resources.each do |resource|
273273
@resource_hash[resource['type']] ||= {}
274274
@resource_hash[resource['type']][resource['title']] = resource
275+
276+
if resource.key?('parameters') && resource['parameters'].key?('alias')
277+
@resource_hash[resource['type']][resource['parameters']['alias']] = resource
278+
end
275279
end
276280
end
277281
end

0 commit comments

Comments
 (0)