Skip to content

Default for inventory_source is missleading #3080

@dbk-rabel

Description

@dbk-rabel

Hi.

inventory_source objects do have an attribute source_path. The default for this attribute is "".

In the WebUI the attribute is called "Inventory file", which in itself is missleading, because it contains a path, not necessarily a file.
The default displayed in the WebUI is "/ (project root)".

This is confusing.

  1. "/" is normally considered the root directory, not the project root directory. Showing this as the default value in the WebUI is missleading and illogical. For example, if you really would set the value to "/" via the API, it would (correctly) use the root directory of the execution environment as the source_path.

  2. "/ (project root)" is not a real value. If you set the value to "/ (project root)" via API, it is not interpreted as "", but literally as "/ (project root)".

  3. If anything else than "", the WebUI should display the default value as ". (project root)", because "." is the value for the cwd.

Maybe you could consider changing the displayed value of the default of source_path in inventory_sources.

Yours
David

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions