From: Justin Pettit Date: Fri, 4 Dec 2009 22:11:53 +0000 (-0800) Subject: ovs-vsctl: Fix traceback when telling target to reload X-Git-Tag: v0.99.0~10 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a47f0840240e024071aa4a0e2ed27630f1337d68;p=sliver-openvswitch.git ovs-vsctl: Fix traceback when telling target to reload The code to tell the target to reload was referencing a non-existent global variable to determine the target. This change uses the correct one. --- diff --git a/utilities/ovs-vsctl.in b/utilities/ovs-vsctl.in index bef868cfc..06dbabb19 100755 --- a/utilities/ovs-vsctl.in +++ b/utilities/ovs-vsctl.in @@ -158,7 +158,7 @@ def do_cfg_save(cfg, file): file.write("%s=%s\n" % (key, value)) def cfg_reload(): - target = VSWITCHD_TARGET + target = vswitchd_target if not target.startswith('/'): pid = read_first_line_of_file('%s/%s.pid' % ('@RUNDIR@', target)) target = '%s/%s.%s.ctl' % ('@RUNDIR@', target, pid)