ManageIQ/manageiq

View on GitHub
app/models/configuration_script_payload.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
88%

Use filter_map instead.
Open

    error ||= credentials.each_value.collect do |val|
      if val.kind_of?(Hash)
        "credential value must have credential_ref and credential_field" unless val.key?("credential_ref") && val.key?("credential_field")
      elsif !val.kind_of?(String)
        "credential value must be string or a hash"

There are no issues that match your filters.

Category
Status