[ovs-dev] [PATCH v2] ovs-monitor-ipsec: Fix _nss_clear_database() parse error

Flavio Leitner fbl at sysclose.org
Wed Dec 23 20:06:59 UTC 2020


On Wed, Dec 23, 2020 at 11:01:33AM -0500, Mark Gray wrote:
> _nss_clear_database() runs `certutil` in order to get a list
> of certificates currently loaded in NSS. This fails with error:
> 
> "ovs-monitor-ipsec | ERR | Failed to clear NSS database.
> startswith first arg must be bytes or a tuple of bytes, not str"
> 
> Modify subprocess.Popen() to write in 'text' mode so that
> 'startwith' can correctly parse output.
> 
> Signed-off-by: Mark Gray <mark.d.gray at redhat.com>
> ---

Acked-by: Flavio Leitner <fbl at sysclose.org>



More information about the dev mailing list