mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-27 10:28:41 -05:00
Update hostname_shorten and callers
This commit is contained in:
parent
35dc7cb26f
commit
0119126cd1
3 changed files with 394 additions and 34 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue