Importing a Ansible variable into Red Hat Satellite fails with error undefined method `map' for nil:NilClass

Solution Verified - Updated -

Issue

  • Below error is observed in Red Hat Satellite WebUI while importing a Ansible variable or a custom Ansible role:

    NoMethodError
    undefined method `map' for nil:NilClass
    /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible-3.0.7.1/app/services/foreman_ansible/variables_importer.rb:48:in `initialize_variables'
    /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible-3.0.7.1/app/services/foreman_ansible/variables_importer.rb:34:in `block in import_variables'
    

Environment

  • Red Hat Satellite 6.6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content