ovs-xapi-sync: Crashes if root-prefix is unspecified.
authorEthan Jackson <ethan@nicira.com>
Wed, 28 Sep 2011 19:12:56 +0000 (12:12 -0700)
committerEthan Jackson <ethan@nicira.com>
Wed, 28 Sep 2011 19:12:56 +0000 (12:12 -0700)
xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync

index 2f290892a7f09308723e5cac8f27533df9325daf..85795e0e6004f7b8241ba4692653119bb71b848b 100755 (executable)
@@ -236,7 +236,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