ovs-monitor-ipsec: Create cert directory if it doesn't exist.
authorJustin Pettit <jpettit@nicira.com>
Tue, 18 Jan 2011 08:09:15 +0000 (00:09 -0800)
committerJustin Pettit <jpettit@nicira.com>
Thu, 20 Jan 2011 01:53:17 +0000 (17:53 -0800)
debian/ovs-monitor-ipsec

index 12ff9f5..17f3997 100755 (executable)
@@ -116,6 +116,9 @@ path certificate "%s";
         self.psk_hosts = {}
         self.cert_hosts = {}
 
+        if not os.path.isdir(self.cert_dir):
+            os.mkdir(self.cert_dir)
+
         # Clean out stale peer certs from previous runs
         for ovs_cert in glob.glob("%s/ovs-*.pem" % self.cert_dir):
             try: