Update hostname_shorten and callers

This commit is contained in:
Jake Spain 2023-02-16 09:57:18 -05:00
parent 35dc7cb26f
commit 0119126cd1
No known key found for this signature in database
GPG key ID: BC1C4DA0A085E113
3 changed files with 394 additions and 34 deletions

View file

@ -181,8 +181,7 @@ module Vmpooler
/^\d{4}-\d{2}-\d{2}$/ === date_str
end
# NOTE: domain is not needed here, so we should update the callers of this method
def hostname_shorten(hostname, domain=nil)
def hostname_shorten(hostname)
hostname[/[^.]+/]
end