Open andylytical opened 3 years ago
Workaround suggestion:
enc_adm -l >junk; <junk awk '$3=="production"{print $3,$1}'; rm -f junk
Workaround suggestion:
/root/pupperware/bin
that automate the workaround (dumping output to a file, then cat'ing the file) or provide a full solution for the most common usecases:
Possible update to enc_adm
script:
outfn=$(mktemp)
docker-compose exec puppet /etc/puppetlabs/enc/admin.py "$@" >$outfn
cat $outfn
rm -f $outfn
This appears to resolve the issue for:
enc_adm -l | awk '$3=="production"{print $3,$1}'
Normally, this output is garbled (strings are run together, newlines do not actually make a line break).
This is (or was) a known issue with Docker. (need link here)
Can we work around it?
Otherwise, add notes in README about "Known Issues" and include useful workarounds.