Skip to content

Commit

Permalink
chore: cops
Browse files Browse the repository at this point in the history
  • Loading branch information
madhuravius committed Aug 23, 2023
1 parent 0fdcb2f commit 5025882
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion lib/aptible/cli/helpers/maintenance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ def maintenance_databases
end
end
end

1 change: 0 additions & 1 deletion lib/aptible/cli/helpers/s3_log_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ def time_match?(time_range, start_timestamp, end_timestamp)
true
end


def encryption_key(filesum, possible_keys)
# The key can be determined from the sum
possible_keys.each do |k|
Expand Down
9 changes: 5 additions & 4 deletions lib/aptible/cli/resource_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,11 @@ def inject_metric_drain(node, metric_drain, account)

def inject_maintenance(node, maintenance_resource, account)
node.value('id', maintenance_resource.id)
raw_window_start, raw_window_end = maintenance_resource.maintenance_deadline
window_start = utc_string(raw_window_start)
window_end = utc_string(raw_window_end)
label = "#{maintenance_resource.handle} between #{window_start} and #{window_end}"
raw_start, raw_end = maintenance_resource.maintenance_deadline
window_start = utc_string(raw_start)
window_end = utc_string(raw_end)
label = "#{maintenance_resource.handle} between #{window_start} "\
"and #{window_end}"
node.value('handle', label)

attach_account(node, account)
Expand Down

0 comments on commit 5025882

Please sign in to comment.