mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 13:28:42 -05:00
(rubocop) Fix Style/IfInsideElse
This commit is contained in:
parent
dec621e9b8
commit
6c4fe8384c
1 changed files with 4 additions and 4 deletions
|
|
@ -190,12 +190,12 @@ class Utils
|
||||||
service_config.merge! values
|
service_config.merge! values
|
||||||
else
|
else
|
||||||
# If the user provided a service name at the command line, use that service if posible, or fail
|
# If the user provided a service name at the command line, use that service if posible, or fail
|
||||||
if config['services'][options.service]
|
unless config['services'][options.service]
|
||||||
# If the service is configured but some values are missing, use the top-level defaults to fill them in
|
|
||||||
service_config.merge! config['services'][options.service]
|
|
||||||
else
|
|
||||||
raise ArgumentError, "Could not find a configured service named '#{options.service}' in ~/.vmfloaty.yml"
|
raise ArgumentError, "Could not find a configured service named '#{options.service}' in ~/.vmfloaty.yml"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# If the service is configured but some values are missing, use the top-level defaults to fill them in
|
||||||
|
service_config.merge! config['services'][options.service]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue