summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authordermotbradley <dermot_bradley@yahoo.com>2020-07-15 21:24:43 +0100
committerGitHub <noreply@github.com>2020-07-15 16:24:43 -0400
commitc0d239c7eadeae9c9e0b4e692b49e79c8ffcafd2 (patch)
tree4aa743d2d61dd0617747f90d4d684b72705fc240 /.github
parent295f88052ba4cd452b55eb5fbd907f90aa6f9c52 (diff)
downloadvyos-cloud-init-c0d239c7eadeae9c9e0b4e692b49e79c8ffcafd2.tar.gz
vyos-cloud-init-c0d239c7eadeae9c9e0b4e692b49e79c8ffcafd2.zip
cc_ca_certs.py: fix blank line problem when removing CAs and adding new one (#483)
Problem: When cc_ca_certs configuration has both "remove-defaults: true" and also specifies one, or more, new trusted CAs to add then the resultant /etc/ca-certificates.conf file's 1st line is blank. As noted in comments in the existing cc_ca_certs.py code blank lines in this file cause problems. Fix: Before adding the cloud-init CA filename to this file first check the size of the file - if is is empty (as all existing CAs have been deleted) then write only the cloud-init CA filename to the file rather than appending it to the file.
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions