forked from pool/cloud-init
Robert Schweikert
869be1f2bf
+ Properly set the password for the default user in all circumstances OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=177
12 lines
448 B
Diff
12 lines
448 B
Diff
--- cloudinit/sources/DataSourceAzure.py.orig
|
|
+++ cloudinit/sources/DataSourceAzure.py
|
|
@@ -1206,7 +1206,7 @@ def read_azure_ovf(contents):
|
|
if password:
|
|
defuser['lock_passwd'] = False
|
|
if DEF_PASSWD_REDACTION != password:
|
|
- defuser['passwd'] = encrypt_pass(password)
|
|
+ defuser['passwd'] = cfg['password'] = encrypt_pass(password)
|
|
|
|
if defuser:
|
|
cfg['system_info'] = {'default_user': defuser}
|