__line crashes in dry-run mode when file does not exist yet #114
Labels
No Label
bugfix
cleanup
discussion
documentation
doing
done
feature
improvement
packaging
Stale
testing
TODO
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ungleich-public/cdist#114
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
Created by: thriqon
Suppose the following snippet in a manifest:
and
/tmp/test
does not exist on the target host.This works fine when invoking
cdist config
normally, but crashes in the explorer phase when running it with--dry-run
.This is because the explorer invokes
awk
directly without testing file presence first and handling that gracefully.__line
still crashes (probably) if the file does not exist when running normally, but that is a different topic (and a design decision).