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.
file.write("%s=%s\n" % (key, value))
def cfg_reload():
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)
if not target.startswith('/'):
pid = read_first_line_of_file('%s/%s.pid' % ('@RUNDIR@', target))
target = '%s/%s.%s.ctl' % ('@RUNDIR@', target, pid)