mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
(rubocop) Fix Performance/RegexpMatch
This commit is contained in:
parent
c78ad33104
commit
c97af3f7db
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ class Ssh
|
|||
response = Pooler.retrieve(verbose, os_types, token, url)
|
||||
raise "Could not get vm from vmpooler:\n #{response}" unless response['ok']
|
||||
|
||||
user = host_os =~ /win/ ? 'Administrator' : 'root'
|
||||
user = /win/.match?(host_os) ? 'Administrator' : 'root'
|
||||
|
||||
hostname = "#{response[host_os]['hostname']}.#{response['domain']}"
|
||||
cmd = "#{ssh_path} #{user}@#{hostname}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue