From a47f0840240e024071aa4a0e2ed27630f1337d68 Mon Sep 17 00:00:00 2001
From: Justin Pettit <jpettit@nicira.com>
Date: Fri, 4 Dec 2009 14:11:53 -0800
Subject: [PATCH] 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.
---
 utilities/ovs-vsctl.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utilities/ovs-vsctl.in b/utilities/ovs-vsctl.in
index bef868cf..06dbabb1 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)
-- 
2.30.2