diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2019-04-28 15:44:40 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2019-04-28 15:58:10 +0800 |
commit | 496bca378a06a8690d23b999b713900347ac96f2 (patch) | |
tree | bbb4afe656b721f68ff5850a46b7b2dbe59108cb /lcm/lcm/nf/biz | |
parent | 6a34d8e87885f0ce85a29707a5cc242d32109eed (diff) |
Add suboperation to lcm op occ
Change-Id: Idba4b5374f564d467694e7592d287ace868346a5
Issue-ID: VFC-1306
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'lcm/lcm/nf/biz')
-rw-r--r-- | lcm/lcm/nf/biz/operate_vnf_lcm_op_occ.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lcm/lcm/nf/biz/operate_vnf_lcm_op_occ.py b/lcm/lcm/nf/biz/operate_vnf_lcm_op_occ.py index b8e7f50f..919a3461 100644 --- a/lcm/lcm/nf/biz/operate_vnf_lcm_op_occ.py +++ b/lcm/lcm/nf/biz/operate_vnf_lcm_op_occ.py @@ -77,11 +77,13 @@ class VnfLcmOpOcc: } })).save() - def upd(self, operation_state=None, error=None): + def upd(self, operation_state=None, sub_operation=None, error=None): occ = VNFLcmOpOccModel.objects.filter(id=self.lcm_op_id) with MUTEX_UPD_OCC: if operation_state: occ.update(operation_state=operation_state) + if sub_operation: + occ.update(sub_operation=sub_operation) if error: occ.update(error=json.dumps(error)) |