ansible/awx

Suggested inventories from scm project filter out yml files that could be plugin configs

开放

#3,491 创建于 2019年3月25日

 (5 条评论) (0 个反应) (0 位负责人)Python (3,333 个派生)batch import
component:apihelp wantedtype:bug

仓库指标

星标
 (13,071 个星标)
PR 合并指标
 (平均合并 24天 6小时) (30 天内合并 30 个 PR)

描述

ISSUE TYPE
  • Bug Report
COMPONENT NAME
  • API
SUMMARY

Inventory plugins are configured via .yml or .yaml files. The UI hits the api/v2/projects/<id>/inventories/ endpoint and this offers a filtered down list of files that could be used for inventories. While in the past it may have made sense to filter out yaml files, now it does not because that is how one uses inventory plugins.

ENVIRONMENT
  • AWX version: devel
STEPS TO REPRODUCE

Create project with .yml inventory plugin config files. Create an inventory source that uses the project as SCM source.

EXPECTED RESULTS

The inventory plugin config files show up when you make a scm sourced inventory source.

ACTUAL RESULTS

Files did not show up in UI.

While you can specify it via source_path on the inventory source with a POST to the API, this file not showing up in the list prevents users from specifying it through UI.

ADDITIONAL INFORMATION

@AlanCoding says we need to clarify what we want to do. Hypothetically we could only accept files that match the core distributed inventory plugins, but this would prevent users from using cusom plugins, which we want them to be able to do. Seems like we might have to just let .yml and .yaml files through.

贡献者指南