Skip to content

Commit

Permalink
fix: hostname generation
Browse files Browse the repository at this point in the history
Hostnames should not contain _ characters, use - instead
  • Loading branch information
mromulus committed Feb 20, 2024
1 parent 7d73c0c commit 4ce56e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/calculation/hostname_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def result
hostname_sequence_suffix,
hostname_team_suffix
].compact
hostname = "#{subject.hostname}#{sequences.join('_')}"
hostname = "#{subject.hostname}#{sequences.join('-')}"
domain = nic&.network&.full_domain.to_s.gsub(/#+/, '{{ team_nr_str }}')

Struct.new(:hostname, :domain, :fqdn).new(
Expand Down

0 comments on commit 4ce56e4

Please sign in to comment.