Skip to content

Commit

Permalink
rubocop: Fix Style/StringLiteralsInInterpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Mar 24, 2023
1 parent 31f8a9e commit f884a91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/beaker/host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def do_scp_to source, target_path, options
dir_source = Dir.glob("#{source}/**/*").reject do |f|
ignore_re&.match?(f.gsub(/\A#{Regexp.escape(source)}/, '')) # only match against subdirs, not full path
end
@logger.trace "After rejecting ignored files/dirs, going to scp [#{dir_source.join(", ")}]"
@logger.trace "After rejecting ignored files/dirs, going to scp [#{dir_source.join(', ')}]"

# create necessary directory structure on host
# run this quietly (no STDOUT)
Expand Down
2 changes: 1 addition & 1 deletion lib/beaker/perf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def print_perf_info
def get_perf_data(host, perf_start, perf_end)
@logger.perf_output("Getting perf data for host: " + host)
if PERF_SUPPORTED_PLATFORMS.match?(host['platform']) # All flavours of Linux
host.exec(Command.new("sar -A -s #{perf_start.strftime("%H:%M:%S")} -e #{perf_end.strftime("%H:%M:%S")}"), :acceptable_exit_codes => [0, 1, 2]) if not @options[:collect_perf_data]&.include?('aggressive')
host.exec(Command.new("sar -A -s #{perf_start.strftime('%H:%M:%S')} -e #{perf_end.strftime('%H:%M:%S')}"), :acceptable_exit_codes => [0, 1, 2]) if not @options[:collect_perf_data]&.include?('aggressive')
if (defined? @options[:graphite_server] and not @options[:graphite_server].nil?) and
(defined? @options[:graphite_perf_data] and not @options[:graphite_perf_data].nil?)
export_perf_data_to_graphite(host)
Expand Down

0 comments on commit f884a91

Please sign in to comment.