SHA256
1
0
forked from pool/cloud-init
cloud-init/cloud-init-no-pwd-in-log.patch

14 lines
480 B
Diff
Raw Normal View History

--- cloudinit/config/cc_set_passwords.py.orig
+++ cloudinit/config/cc_set_passwords.py
@@ -213,7 +213,9 @@ def handle(_name, cfg, cloud, log, args)
if len(randlist):
blurb = ("Set the following 'random' passwords\n",
'\n'.join(randlist))
- sys.stderr.write("%s\n%s\n" % blurb)
+ util.multi_log(
+ "%s\n%s\n" % blurb, stderr=False
+ )
if expire:
expired_users = []