Merge "Add the record container action to capsule_create"

This commit is contained in:
Zuul 2018-02-13 09:52:56 +00:00 committed by Gerrit Code Review
commit b1d2a2c2ae
1 changed files with 3 additions and 0 deletions

View File

@ -174,6 +174,9 @@ class API(object):
new_capsule.status_reason = str(exc)
new_capsule.save(context)
return
for container in new_capsule.containers:
self._record_action_start(context, container,
container_actions.CREATE)
self.rpcapi.capsule_create(context, host_state['host'], new_capsule,
requested_networks, requested_volumes,
host_state['limits'])