Merge "Don't pass None arg to neutron-keepalived-state-change" into stable/rocky

This commit is contained in:
Zuul 2019-04-09 05:53:37 +00:00 committed by Gerrit Code Review
commit 5003c0ac98
1 changed files with 2 additions and 2 deletions

View File

@ -362,6 +362,7 @@ class HaRouter(router.RouterInfo):
ha_cidr = self._get_primary_vip()
def callback(pid_file):
root_helper_daemon = self.agent_conf.AGENT.root_helper_daemon or ''
cmd = [
'neutron-keepalived-state-change',
'--router_id=%s' % self.router_id,
@ -374,8 +375,7 @@ class HaRouter(router.RouterInfo):
'--user=%s' % os.geteuid(),
'--group=%s' % os.getegid(),
'--AGENT-root_helper=%s' % self.agent_conf.AGENT.root_helper,
'--AGENT-root_helper_daemon=%s' %
self.agent_conf.AGENT.root_helper_daemon]
'--AGENT-root_helper_daemon=%s' % root_helper_daemon]
return cmd
return callback