From: Ethan Jackson Date: Wed, 28 Sep 2011 19:12:56 +0000 (-0700) Subject: ovs-xapi-sync: Crashes if root-prefix is unspecified. X-Git-Tag: v1.3.0~184 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=2c11e6d91216a1f40e9a499ee37868c81fc34f35 ovs-xapi-sync: Crashes if root-prefix is unspecified. --- diff --git a/xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync b/xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync index 2f290892a..85795e0e6 100755 --- a/xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync +++ b/xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync @@ -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