diff options
-rw-r--r-- | fcaps/fcaps/vesagent/vesagent_ctrl.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fcaps/fcaps/vesagent/vesagent_ctrl.py b/fcaps/fcaps/vesagent/vesagent_ctrl.py index c332d485..97d7863a 100644 --- a/fcaps/fcaps/vesagent/vesagent_ctrl.py +++ b/fcaps/fcaps/vesagent/vesagent_ctrl.py @@ -24,6 +24,7 @@ from django.conf import settings from common.msapi import extsys from fcaps.vesagent.tasks import scheduleBacklogs from fcaps.vesagent.event_domain import fault_vm +from fcaps.vesagent.event_domain import pm_vm from django.core.cache import cache @@ -392,6 +393,8 @@ class VesAgentCtrl(APIView): try: if backlog_input["domain"] == "fault" and backlog_input["type"] == "vm": return fault_vm.buildBacklog_fault_vm(vimid, backlog_input) + elif backlog_input["domain"] == "pm" and backlog_input["type"] == "vm": + return pm_vm.buildBacklog_pm_vm(vimid, backlog_input) else: self._logger.warn("return with failure: unsupported backlog domain:%s, type:%s" % (backlog_input["domain"], backlog_input["type"] == "vm")) |