mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-22 13:33:52 +03:00
L #-: Disbale ConditionalAssignment check.
Fix provision.rb
(cherry picked from commit ca40d0f8db
)
This commit is contained in:
parent
2216a9db7a
commit
09e7c9b587
@ -579,7 +579,9 @@ Style/SignalException:
|
||||
EnforcedStyle: only_raise
|
||||
|
||||
Style/ConditionalAssignment:
|
||||
EnforcedStyle: assign_inside_condition
|
||||
Enabled: false
|
||||
# EnforcedStyle: assign_inside_condition
|
||||
# EnforcedStyle: assign_to_condition
|
||||
|
||||
# No parentheses with no argument
|
||||
Style/DefWithParentheses:
|
||||
|
@ -182,11 +182,11 @@ module OneProvision
|
||||
def provider
|
||||
return @provider if @provider
|
||||
|
||||
@provider = if @body['provider'] == 'onprem'
|
||||
Provider.new_onprem(@client)
|
||||
else
|
||||
Provider.by_name(@client, @body['provider'])
|
||||
end
|
||||
@provider = if @body['provider'] == 'onprem'
|
||||
Provider.new_onprem(@client)
|
||||
else
|
||||
Provider.by_name(@client, @body['provider'])
|
||||
end
|
||||
end
|
||||
|
||||
# Returns infrastructure + resource objects
|
||||
|
Loading…
Reference in New Issue
Block a user