-
Notifications
You must be signed in to change notification settings - Fork 77
Description
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.
-
"/" 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.
-
"/ (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)".
-
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