You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running at verbosity 10 reveals that several files stored in rolename/files/ are missing "kind", which is probably fine internally but the output could be improved. They are actually printed with the field that usually lists the "kind" missing in the output which produces a strange looking message where there are 2 spaces where the missing "kind" should be:
data set to None for roles/rolename/files/php.conf due to being of kind. ^ here
Example of file where "kind" is detected:
data set to None for roles/rolename/files/php.ini due to being of text/ini kind.
If this "empty kind" is supposed to mean "file kind was not detected or was unknown" then it would be better to print that instead of just leaving the field empty in the output. Examples:
due to being of unrecognized kind.
due to being of undetected kind.
due to being of unknown kind.
or even due to being of (skipped) kind.
I would also like to note that "type" is used more universally for this meaning instead of "kind"...
Issue Type
Bug Report
OS / ENVIRONMENT
ansible-lint --versionansible-lint 6.14.4 using ansible 2.14.4
ansible installation method: pip
ansible-lint installation method: pip
STEPS TO REPRODUCE
Create a role.
Put some files in files/, for example 1 file with extension .ini and other file with extension .conf.
Run ansible-lint -vv.
Check output for missing "kind" for the .conf file.
Desired Behavior
Improve the message so that the "kind" is not left to empty which leaves 2 consecutive spaces in the output, instead use a suitable word such as "undetected", "unknown", "unrecognized", "(skipped)", etc in the field.
Possible security bugs should be reported via email to [email protected]
Actual Behavior
data set to None for roles/rolename/files/php.conf due to being of kind.
The text was updated successfully, but these errors were encountered:
Summary
Running at verbosity 10 reveals that several files stored in
rolename/files/
are missing "kind", which is probably fine internally but the output could be improved. They are actually printed with the field that usually lists the "kind" missing in the output which produces a strange looking message where there are 2 spaces where the missing "kind" should be:Example of file where "kind" is detected:
data set to None for roles/rolename/files/php.ini due to being of text/ini kind.
If this "empty kind" is supposed to mean "file kind was not detected or was unknown" then it would be better to print that instead of just leaving the field empty in the output. Examples:
due to being of unrecognized kind.
due to being of undetected kind.
due to being of unknown kind.
due to being of (skipped) kind.
I would also like to note that "type" is used more universally for this meaning instead of "kind"...
Issue Type
OS / ENVIRONMENT
STEPS TO REPRODUCE
files/
, for example 1 file with extension.ini
and other file with extension.conf
.ansible-lint -vv
..conf
file.Desired Behavior
Improve the message so that the "kind" is not left to empty which leaves 2 consecutive spaces in the output, instead use a suitable word such as "undetected", "unknown", "unrecognized", "(skipped)", etc in the field.
Possible security bugs should be reported via email to
[email protected]
Actual Behavior
The text was updated successfully, but these errors were encountered: