Merge "Remove unnecessary check if agent object from db is not None"

This commit is contained in:
Zuul 2020-06-10 03:10:09 +00:00 committed by Gerrit Code Review
commit 344d43ec0a
1 changed files with 0 additions and 2 deletions

View File

@ -1044,8 +1044,6 @@ class _DVRAgentInterfaceMixin(object):
{'ag': const.AGENT_TYPE_L3,
'host': host})
return
if not l3_agent_db:
return
l3_agent_mode = self._get_agent_mode(l3_agent_db)
if l3_agent_mode == const.L3_AGENT_MODE_DVR_NO_EXTERNAL: