Why Is awx-manage inventory_import Command Failing With 'enum has no attribute IntFlag error' When The Command Is Run Via Playbook In Ansible Tower ?

Solution Verified - Updated -

Issue

When running awx-manage inventory_import command from an Ansible Tower job, it is failing with 'enum' has no attribute 'IntFlag' error.

AttributeError: module 'enum' has no attribute 'IntFlag'

Environment

  • Ansible Tower 3.5+

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