Merge "Fix update listener certs doesn't work" into stable/yoga

This commit is contained in:
Zuul 2023-03-27 12:26:22 +00:00 committed by Gerrit Code Review
commit ab945b657b
2 changed files with 6 additions and 1 deletions

View File

@ -399,7 +399,7 @@ class Loadbalancer(object):
stream = Wrapped(flask.request.stream)
file = self._cert_file_path(lb_id, filename)
flags = os.O_WRONLY | os.O_CREAT
flags = os.O_WRONLY | os.O_CREAT | os.O_TRUNC
# mode 00600
mode = stat.S_IRUSR | stat.S_IWUSR
with os.fdopen(os.open(file, flags, mode), 'wb') as crt_file:

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fix update listener certs failed. The fix ensures
that an existing certificate gets overwritten properly.