Merge "Fix test_list_with_limit failed"

This commit is contained in:
Jenkins 2017-06-28 11:39:51 +00:00 committed by Gerrit Code Review
commit a487a4efc8
1 changed files with 2 additions and 0 deletions

View File

@ -232,6 +232,8 @@ class BaseInfraOptimTest(test.BaseTestCase):
)
_, action_plans = cls.client.list_action_plans(audit_uuid=audit_uuid)
if len(action_plans['action_plans']) == 0:
return
return action_plans['action_plans'][0]