debian: ovs-monitor-ipsec requires root_prefix option.
authorEthan Jackson <ethan@nicira.com>
Thu, 6 Oct 2011 01:07:04 +0000 (18:07 -0700)
committerEthan Jackson <ethan@nicira.com>
Thu, 6 Oct 2011 01:07:04 +0000 (18:07 -0700)
Before this patch, if the root_prefix option is left unset
ovs-monitor-ipsec will crash.

debian/ovs-monitor-ipsec

index 444b234..f7bdf1d 100755 (executable)
@@ -436,7 +436,8 @@ def main():
     ovs.daemon.handle_args(args)
 
     global root_prefix
-    root_prefix = args.root_prefix
+    if args.root_prefix:
+        root_prefix = args.root_prefix
 
     remote = args.database
     schema_file = "%s/vswitch.ovsschema" % ovs.dirs.PKGDATADIR