From e62773342b08d0742d920b19fe8012df4e8a4d24 Mon Sep 17 00:00:00 2001 From: Josh Cooper Date: Thu, 25 Jul 2024 01:44:32 -0700 Subject: [PATCH] Sort required binaries and supported features for each provider 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` --- lib/puppet_references/puppet/type_strings.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/puppet_references/puppet/type_strings.rb b/lib/puppet_references/puppet/type_strings.rb index b56cf8c9b..35ca53af1 100644 --- a/lib/puppet_references/puppet/type_strings.rb +++ b/lib/puppet_references/puppet/type_strings.rb @@ -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('`, `')}`" @@ -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'] || []),