diff options
author | Ethan Jackson <ethan@nicira.com> | 2011-09-28 12:12:56 -0700 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2011-09-28 12:12:56 -0700 |
commit | 2c11e6d91216a1f40e9a499ee37868c81fc34f35 (patch) | |
tree | 2dd65017145f5b1d843f9dd15c621f8f6152692b /xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync | |
parent | 2f0dc471d0a6eb61c525e8bff927cf19e835b87f (diff) |
ovs-xapi-sync: Crashes if root-prefix is unspecified.
Diffstat (limited to 'xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync')
-rwxr-xr-x | xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync | 3 |
1 files changed, 2 insertions, 1 deletions
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 |