Fix the sdc controller case in submit, use controlname instead of model
name
Issue-ID: CLAMP-151
Change-Id: I15181daee49b052f191db8af4368983261b3bcbf
Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
// SDC artifact case
logger.info("Skipping DCAE inventory call as closed loop has been created from SDC notification");
DcaeEvent dcaeEvent = new DcaeEvent();
- dcaeEvent.setArtifactName(retrievedModel.getName() + ".yml");
+ dcaeEvent.setArtifactName(retrievedModel.getControlName() + ".yml");
dcaeEvent.setEvent(DcaeEvent.EVENT_DISTRIBUTION);
CldsEvent.insEvent(cldsDao, dcaeEvent.getControlName(), userId, dcaeEvent.getCldsActionCd(),
CldsEvent.ACTION_STATE_RECEIVED, null);