diff --git a/share/linters/.rubocop.yml b/share/linters/.rubocop.yml index 7f358c7c1f..6a928da734 100644 --- a/share/linters/.rubocop.yml +++ b/share/linters/.rubocop.yml @@ -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: diff --git a/src/oneprovision/lib/provision/provision.rb b/src/oneprovision/lib/provision/provision.rb index 1c95425d62..01365ba66f 100644 --- a/src/oneprovision/lib/provision/provision.rb +++ b/src/oneprovision/lib/provision/provision.rb @@ -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