Merge "Fix dict.keys() TypeError issue."

This commit is contained in:
Zuul 2019-03-19 04:56:43 +00:00 committed by Gerrit Code Review
commit 1a3c027724
1 changed files with 1 additions and 1 deletions

View File

@ -829,7 +829,7 @@ class VNFMPlugin(vnfm_db.VNFMPluginDb, VNFMMgmtMixin):
# filtered in _get_vnf_triggers().
# Getting action from trigger to decide which process_alarm_for_vnf
# method will be called.
if trigger['trigger'].keys()[0]\
if list(trigger['trigger'])[0]\
in constants.RESERVATION_POLICY_ACTIONS:
if not self._vnf_reservation_monitor.process_alarm_for_vnf(
vnf_id, trigger):