Not user friendly error for running ad-hoc command with no setup #39
Replies: 2 comments
-
Yeah, this is unclear, but I'm unsure what to do here. This is a "failed match" that found nothing suitable in the inventory/playbook and used the "default" target name. Removing "default" logic for ad-hoc command is not a good idea either, as running ad-hoc with inventory is a valid use case |
Beta Was this translation helpful? Give feedback.
-
Thank you for the explanation. I was thinking about this and I can't propose anything what will be better that the current behaviour. (at first I was thinking to threat this as a some special case and output a better message, but now I think that this message can give an interesting idea to the person who is reading it — add So, I'm closing this discussion. |
Beta Was this translation helpful? Give feedback.
-
This is a very minor thing.
I do not specify inventory, there is no playbook and no --target, but I try to run ad-hoc command.
I get the error (this is expected, because the system does not know where to execute the command), but the message can be more user friendly (and I"m not sure that usage of
default
hostname makes much sense)Beta Was this translation helpful? Give feedback.
All reactions