ManageIQ/manageiq-providers-amazon

View on GitHub

Showing 43 of 43 total issues

Use filter_map instead.
Open

      %i(amazon_key amazon_secret).map do |key|
        if config[key].blank?
          [key, "#{key} can't be blank"]
        end
      end.compact
Severity: Minor
Found in app/models/authenticator/amazon.rb by rubocop

Use string as argument instead of regexp.
Open

    sns.topics.detect { |t| t.arn.split(/:/)[-1] == @topic_name }

Use filter_map instead.
Open

      vm.cloud_subnets.collect(&:ems_ref).compact.each { |ems_ref| add_target!(:cloud_subnets, ems_ref) }
Severity
Category
Status
Source
Language