forked from pool/cloud-init
Robert Schweikert
b8c37f9e0f
+ 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
14 lines
480 B
Diff
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 = []
|