SHA256
1
0
forked from pool/cloud-init
cloud-init/cloud-init-no-pwd-in-log.patch
Robert Schweikert b8c37f9e0f - Add cloud-init-log-file-mode.patch (bsc#1183939)
+ Change log file creation mode to 640
- Add cloud-init-no-pwd-in-log.patch (bsc#1184758)
  + Do not write the generated password to the log file
- Add cloud-init-purge-cahce-py-ver-change.patch

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=184
2021-06-02 21:15:40 +00:00

14 lines
480 B
Diff

--- 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 = []