Skip to content

Commit 20f7a3e

Browse files
committed
Merge pull request 'fix: enc script to look at correct response.' (#1528) from env_env_fix into master
Reviewed-on: https://gitea.obmondo.com/EnableIT/LinuxAid/pulls/1528
2 parents f4b83af + d4c105d commit 20f7a3e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

puppet_enc.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
{
4343
'tags' => ['tag1'],
4444
'product_id' => 'silver',
45-
'linuxaid_tag' => 'master',
45+
'environment' => 'master',
4646
}
4747
else
4848
begin
@@ -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(/[^a-zA-Z0-9]/, '_')
62+
environment = server_data&.dig('environment')&.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!
@@ -97,6 +97,6 @@
9797
'parameters' => parameters
9898
}
9999

100-
output['environment'] = linuxaid_tag
100+
output['environment'] = environment
101101

102102
puts YAML.dump(output)

0 commit comments

Comments
 (0)