Running with -v (or more) breaks gencode-* scripts #343
Labels
No labels
bugfix
cleanup
discussion
documentation
doing
done
feature
improvement
packaging
Stale
testing
TODO
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: ungleich-public/cdist#343
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This line in my
gencode-remote
script is broken when running cdist with-v
(or more):Without
-v
I get the expected contents ofOUT
:With (one or more)
-v
I get:It's probably not supported to call
cdist
from within a cdist run, but still, this seems broken behaviour.As you see, I'm trying to get the tags applied to the target host, so I can do something with it. I may have missed it, but it would be nice if support for tags was improved so I can actually use it in my manifests and types.
For example, a __tags variable that contains the tags for the target host would already solve 99% of the issues I'm trying to work through.
Now that's a cool issue. Thanks for finding it, this should be supported even though inventory support is still under beta...
The basic problem is that the verbosity level is inherited to the secondary cdist call, which is correct in the case of cdist type emulator, but wrong in your case.
Proposed fix:
Nice catch!