Add the record container action to capsule_create

Closes-bug: #1748820

Change-Id: Ied896b66d4083eb9f3949338890f66a5f3af906d
Signed-off-by: Kevin Zhao <kevin.zhao@arm.com>
This commit is contained in:
Kevin Zhao 2018-02-12 16:22:34 +08:00
parent b158fa087f
commit 431aae2ee1
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'])