Skip to content

Commit

Permalink
Sort required binaries and supported features for each provider
Browse files Browse the repository at this point in the history
For example:

   * Required binaries: `/usr/bin/chgroup`, `/usr/bin/mkgroup`, `/usr/sbin/lsgroup`, `/usr/sbin/rmgroup`
   * Supported features: `manages_aix_lam`, `manages_local_users_and_groups`, `manages_members`
  • Loading branch information
joshcooper committed Jul 25, 2024
1 parent c4a0a7a commit e627733
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 e627733

Please sign in to comment.