output of cc_ssh_authkey_fingerprints goes only to /dev/console
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Low
|
Unassigned |
Bug Description
I have an instance launched with cloud-config like:
output: {all: '| tee -a /var/log/
The output of ssh_authkey_
This is because it calls:
for line in lines:
The other occurance of a config module that writes to the console is
keys_to_console, which does:
So, clearly a simple solution is just to turn 'stderr=False' (default for
multi_log is True). However, that means that if the user runs this module
like:
cloud-init --force single -n ssh_authkey_
Then they'll get no output.
This just represents a more general problem, of how do we have
something explicitly write to the console, but not doubly write there.
Changed in cloud-init: | |
status: | New → Confirmed |
importance: | Undecided → Low |
I'm going to go ahead and commit the simple fix mentioned above, and then see if we can't fix this better later.