[ovs-dev] [PATCH] ovs-vsctl: Fix traceback when telling target to reload
Justin Pettit
jpettit at nicira.com
Fri Dec 4 22:15:47 UTC 2009
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.
---
utilities/ovs-vsctl.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/utilities/ovs-vsctl.in b/utilities/ovs-vsctl.in
index bef868c..06dbabb 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)
--
1.6.4
More information about the dev
mailing list