Skip to content

Commit

Permalink
Merge pull request #11 from nichtraunzer/bugfix/blueprint-referals-only
Browse files Browse the repository at this point in the history
use only blueprint referrals in test/fixture/ references
  • Loading branch information
nichtraunzer committed Jun 21, 2023
2 parents 1f0020c + 59f9359 commit a3d944f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions hooks/createstackmoduleoutputs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,10 @@
moduleNames.select { |_k, v| v == name }.each_key { |dup| duplicates << dup }

if count == 1
moduleValue = "module.#{fixturemodulename}.module_#{duplicates[0].gsub(/-/, '_')}.*"
moduleValue = "module.#{fixturemodulename}.module_#{name.gsub(/-/, '_')}.*"
moduleV2 = "module.#{duplicates[0]}.*"
else
moduleValue = 'concat('
duplicates.each_index { |i| moduleValue += "module.#{fixturemodulename}.module_#{duplicates[i].gsub(/-/, '_')}.*," }
moduleValue = "#{moduleValue[0...-1]})"
moduleValue = "module.#{fixturemodulename}.module_#{name.gsub(/-/, '_')}.*"

moduleV2 = 'concat('
duplicates.each_index { |i| moduleV2 += "module.#{duplicates[i]}.*," }
Expand Down

0 comments on commit a3d944f

Please sign in to comment.