Skip to content

Commit

Permalink
Merge pull request #1167 from puppetlabs/sort_binaries_features
Browse files Browse the repository at this point in the history
Sort required binaries and supported features for each provider
  • Loading branch information
joshcooper authored Jul 26, 2024
2 parents c4a0a7a + e627733 commit 1a13be3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet_references/puppet/type_strings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_type_json
description = description + "\n"
end
if provider['commands']
description = description + "\n* Required binaries: `#{provider['commands'].values.join('`, `')}`"
description = description + "\n* Required binaries: `#{provider['commands'].values.sort.join('`, `')}`"
end
if provider['confines']
description = description + "\n* Confined to: `#{provider['confines'].map{|fact,val| "#{fact} == #{val}"}.join('`, `')}`"
Expand All @@ -40,7 +40,7 @@ def get_type_json
description = description + "\n* Default for: `#{provider['defaults'].map{|fact,val| "#{fact} == #{val}"}.join('`, `')}`"
end
if provider['features']
description = description + "\n* Supported features: `#{provider['features'].join('`, `')}`"
description = description + "\n* Supported features: `#{provider['features'].sort.join('`, `')}`"
end
memo[provider['name']] = {
'features' => (provider['features'] || []),
Expand Down

0 comments on commit 1a13be3

Please sign in to comment.