1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-25 02:50:08 +03:00

L #-: Minor linting corrections

(cherry picked from commit f88b64b52aa565dcfbf866be31a39cc12a01577a)
This commit is contained in:
Tino Vazquez 2022-05-09 11:03:24 +02:00
parent 8f527101bd
commit 80ab06cdc1
2 changed files with 7 additions and 1 deletions

View File

@ -773,6 +773,12 @@ Style/FileRead:
Style/FetchEnvVar:
Enabled: false
Style/SlicingWithRange:
Enabled: false
Style/RedundantCondition:
Enabled: false
######
# LINT
######

View File

@ -443,7 +443,7 @@ CommandParser::CmdParser.new(ARGV) do
command :key, key_desc, :options => [KEY] do
require 'opennebula/ssh_auth'
options[:key] ||= ENV['HOME'] + '/.ssh/id_rsa'
options[:key] ||= Dir.home + '/.ssh/id_rsa'
begin
sshauth = SshAuth.new(:private_key => options[:key])