mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
(rubocop) Style/HashSyntax to use hash_rockets for consistency
This commit is contained in:
parent
42014ae39f
commit
fcf7154a8b
5 changed files with 35 additions and 33 deletions
|
|
@ -152,10 +152,10 @@ class Vmfloaty
|
|||
|
||||
tags = options.tags ? JSON.parse(options.tags) : nil
|
||||
modify_hash = {
|
||||
lifetime: options.lifetime,
|
||||
disk: options.disk,
|
||||
tags: tags,
|
||||
reason: options.reason
|
||||
:lifetime => options.lifetime,
|
||||
:disk => options.disk,
|
||||
:tags => tags,
|
||||
:reason => options.reason
|
||||
}
|
||||
modify_hash.delete_if { |_, value| value.nil? }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue