in bulkprovision/common/__init__.py [0:0]
def updateItem(self, guidkey, original_status, dbstatus, param_dict, ppdetails, errordetails):
item = {
"guidkey": guidkey,
"status": dbstatus,
"launchparams": param_dict,
"scproductdetails":ppdetails
}
# add the error details if there was an error
if errordetails is not None:
item["errordetails"] = errordetails
key = {
"guidkey": guidkey,
"status": original_status
}
# changing a key, so we need to delete and add. use the original status code
self.dynamo_replace_item(key, item)