confusion: when no hosts are specified cdist waits input silently from stdin #30

Closed
opened 2021-11-20 11:24:57 +00:00 by ungleich-gitea · 11 comments

pedro: what about having last lines saying "waiting hosts to be loaded from stdin" at least in a debug mode (?)

Manis: But I agree that maybe it is not obvious that cdist reads hosts from stdin if none are given.

Manis: How about: "no hosts given" error and if the user wants to read hosts from stdin they can use -f -

poljakowski: With this behavior you can pipe hosts to cdist stdin.

Manis: …so can you with -f - which makes the intent explicit.

poljakowski: True, it is confusing.

poljakowski: Create an issue.

> pedro: what about having last lines saying "waiting hosts to be loaded from stdin" at least in a debug mode (?) > Manis: But I agree that maybe it is not obvious that cdist reads hosts from stdin if none are given. > Manis: How about: "no hosts given" error and if the user wants to read hosts from stdin they can use -f - > poljakowski: With this behavior you can pipe hosts to cdist stdin. > Manis: …so can you with `-f -` which makes the intent explicit. > poljakowski: True, it is confusing. > poljakowski: Create an issue.
poljakowski was assigned by ungleich-gitea 2021-11-20 11:24:57 +00:00
Author
Owner

mentioned in commit 89b6215115

mentioned in commit 89b621511561105cfcfcf12bbf820b74ab03396d
Author
Owner

mentioned in commit 2e6c12c27c

mentioned in commit 2e6c12c27c36d2599adac8ed969754eb42396bfb
Author
Owner

closed via merge request !934

closed via merge request !934
Author
Owner

mentioned in commit 340f220aa3

mentioned in commit 340f220aa3bbf5d5e2cb73ee23be9c282515053d
Author
Owner

mentioned in commit a89d03fbc01b8da1abff5bd2304b86f9a8fce41f

mentioned in commit a89d03fbc01b8da1abff5bd2304b86f9a8fce41f
Author
Owner

mentioned in merge request !934

mentioned in merge request !934
Author
Owner

mentioned in commit 68d0fc8b4c7790e556719aff78433fcc2bc33412

mentioned in commit 68d0fc8b4c7790e556719aff78433fcc2bc33412
Author
Owner

changed title from confusion: when no hosts are specified cdist waits silently from stdin to confusion: when no hosts are specified cdist waits {+input +}silently from stdin

changed title from **confusion: when no hosts are specified cdist waits silently from stdin** to **confusion: when no hosts are specified cdist waits {+input +}silently from stdin**
Author
Owner

matze: What's about a debug message if stdin comes from a terminal/tty?

> matze: What's about a debug message if stdin comes from a terminal/tty?
Author
Owner

assigned to @poljakowski

assigned to @poljakowski
Author
Owner

changed the description

changed the description
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#30
No description provided.