(rubocop) Fix Style/StringLiteralsInInterpolation

This commit is contained in:
Tim Sharpe 2019-02-03 11:17:55 +11:00
parent 12c1795046
commit 5ad213075b
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ class Ssh
user = 'root' user = 'root'
end end
hostname = "#{response[host_os]["hostname"]}.#{response["domain"]}" hostname = "#{response[host_os]['hostname']}.#{response['domain']}"
cmd = "#{ssh_path} #{user}@#{hostname}" cmd = "#{ssh_path} #{user}@#{hostname}"
# TODO: Should this respect more ssh settings? Can it be configured # TODO: Should this respect more ssh settings? Can it be configured

View file

@ -91,7 +91,7 @@ class Utils
end end
duration = "#{host_data['running']}/#{host_data['lifetime']} hours" duration = "#{host_data['running']}/#{host_data['lifetime']} hours"
metadata = [host_data['template'], duration, *tag_pairs] metadata = [host_data['template'], duration, *tag_pairs]
puts "- #{hostname}.#{host_data['domain']} (#{metadata.join(", ")})" puts "- #{hostname}.#{host_data['domain']} (#{metadata.join(', ')})"
when 'NonstandardPooler' when 'NonstandardPooler'
line = "- #{host_data['fqdn']} (#{host_data['os_triple']}" line = "- #{host_data['fqdn']} (#{host_data['os_triple']}"
line += ", #{host_data['hours_left_on_reservation']}h remaining" line += ", #{host_data['hours_left_on_reservation']}h remaining"