From 055b107e9c06b5dec94644935c71ecc9e1cc5cc1 Mon Sep 17 00:00:00 2001 From: Felix Frank Date: Wed, 7 Feb 2024 11:30:10 +0000 Subject: [PATCH] type user: ruby 3 compat fix --- lib/puppetx/catalog_translation/type/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppetx/catalog_translation/type/user.rb b/lib/puppetx/catalog_translation/type/user.rb index fe69955..928c031 100644 --- a/lib/puppetx/catalog_translation/type/user.rb +++ b/lib/puppetx/catalog_translation/type/user.rb @@ -32,7 +32,7 @@ module PuppetX::CatalogTranslation end spawn :group do - if @resource[:gid] =~ /[a-z]/ + if @resource[:gid].is_a? String @resource[:gid] end end