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 444b23417117f291ce5419535e5d943abc349e59..f7bdf1da0c02ce8628ea399f6440e6466312b213 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