ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
14.08k stars 3.42k forks source link

Export objects with `all` option not working #13801

Open phildri opened 1 year ago

phildri commented 1 year ago

Please confirm the following

Bug Summary

The option all in the export module is not working anymore. @ArtsiomMusin already answered to the corresponding code comment in https://github.com/ansible/awx/commit/c39172f516fdcc28318203e9327fa7758647dfbc and confirmed the bug.

AWX version

22.0.0

Select the relevant components

Installation method

N/A

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

No response

Steps to reproduce

As an example, export the workflow templates as follows:

- name: Export all workflows
  awx.awx.export:
    workflow_job_templates: 'all'

Expected results

Complete export of all workflow templates

Actual results

The string all is converted to a list and the assets are empty:

  assets:
    workflow_job_templates: []
  invocation:
    module_args:
      all: false
      applications: null
      controller_config_file: null
      controller_host: xyz
      controller_oauthtoken: null
      controller_password: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
      controller_username: xyz
      credential_types: null
      credentials: null
      execution_environments: null
      inventory: null
      inventory_sources: null
      job_templates: null
      notification_templates: null
      organizations: null
      projects: null
      schedules: null
      teams: null
      users: null
      validate_certs: null
      workflow_job_templates:
      - all

Additional information

No response

fosterseth commented 1 year ago

needs some investigation

TheRealHaoLiu commented 1 year ago

fixed in https://github.com/ansible/awx/pull/13854/files