Replace deprecated "decodestring()" by "decodebytes()"
decodestring() is deprecated alias of decodebytes() https://docs.python.org/3/library/base64.html#base64.decodestring The same has been done for nova: https://review.openstack.org/#/c/610401/ Change-Id: I3be35466fce8d1325cc484b6d2b23f3f818cb08f
This commit is contained in:
parent
8939e57d05
commit
93690dca8c
@ -659,7 +659,7 @@ def secrets_storage_joined(relation_id=None):
|
||||
def secrets_storage_changed():
|
||||
vault_ca = relation_get('vault_ca')
|
||||
if vault_ca:
|
||||
vault_ca = base64.decodestring(json.loads(vault_ca).encode())
|
||||
vault_ca = base64.decodebytes(json.loads(vault_ca).encode())
|
||||
write_file('/usr/local/share/ca-certificates/vault-ca.crt',
|
||||
vault_ca, perms=0o644)
|
||||
subprocess.check_call(['update-ca-certificates', '--fresh'])
|
||||
|
Loading…
Reference in New Issue
Block a user