Skip to content

Commit 53fb30a

Browse files
committed
fix: handle linuxaid-tag for branch and tags
Signed-off-by: Sidharth Jawale <sidharth@obmondo.com>
1 parent 120c6ba commit 53fb30a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

puppet_enc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
subscription_product_id = server_data&.dig('product_id')
6161
tag_keys = server_data&.dig('tags') || []
62-
linuxaid_tag = server_data&.dig('linuxaid_tag').gsub('.', '_')
62+
linuxaid_tag = server_data&.dig('linuxaid_tag').gsub(/[^a-zA-Z0-9]/, '_')
6363

6464
# ensure that we don't have too many tags -- if we allow for more tags, we also
6565
# need to update hiera.yaml!

0 commit comments

Comments
 (0)