Skip to content

Commit

Permalink
Fix broken ssh_key_name
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Nov 1, 2023
1 parent 0282386 commit c5c0f55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/beaker/hypervisor/hcloud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ def cleanup

def ssh_key_name
safe_hostname = Socket.gethostname.tr('.', '-')
[
key_name = [
'Beaker',
ENV.fetch('USER', nil),
safe_hostname,
@options[:aws_keyname_modifier],
@options[:timestamp].strftime('%F_%H_%M_%S_%N'),
].join('-')
@logger.debug("ssh_key_name is: #{safe_hostname}")
safe_hostname
@logger.debug("key_name is: #{key_name}")
key_name
end

def create_ssh_key
Expand Down

0 comments on commit c5c0f55

Please sign in to comment.