summaryrefslogtreecommitdiff
path: root/edge
diff options
context:
space:
mode:
authormcsos <mcsos2048@gmail.com>2020-03-16 16:16:44 +0800
committermcsos <mcsos2048@gmail.com>2020-03-16 16:16:44 +0800
commitc0fb4a51e587801f5db1b878c2578d97ff597072 (patch)
tree18cf2c75133d6b69fb9de38787473da2ec823d15 /edge
parentMerge pull request #1536 from FengyunPan2/centos (diff)
downloadkubeedge-c0fb4a51e587801f5db1b878c2578d97ff597072.tar.gz
Fix typo of the topic suffix for device updated event
The key should be "DeviceETUpdatedSuffix".
Diffstat (limited to 'edge')
-rw-r--r--edge/pkg/devicetwin/process.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/edge/pkg/devicetwin/process.go b/edge/pkg/devicetwin/process.go
index 7e80aaf74..f8ac919f3 100644
--- a/edge/pkg/devicetwin/process.go
+++ b/edge/pkg/devicetwin/process.go
@@ -84,7 +84,7 @@ func initEventActionMap() {
EventActionMap[dtcommon.MemETPrefix][dtcommon.MemETUpdateSuffix] = dtcommon.MemUpdated
EventActionMap[dtcommon.MemETPrefix][dtcommon.MemETGetSuffix] = dtcommon.MemGet
EventActionMap[dtcommon.DeviceETPrefix][dtcommon.DeviceETStateGetSuffix] = dtcommon.DeviceStateGet
- EventActionMap[dtcommon.DeviceETPrefix][dtcommon.DeviceETStateUpdateSuffix] = dtcommon.DeviceUpdated
+ EventActionMap[dtcommon.DeviceETPrefix][dtcommon.DeviceETUpdatedSuffix] = dtcommon.DeviceUpdated
EventActionMap[dtcommon.DeviceETPrefix][dtcommon.DeviceETStateUpdateSuffix] = dtcommon.DeviceStateUpdate
EventActionMap[dtcommon.DeviceETPrefix][dtcommon.TwinETUpdateSuffix] = dtcommon.TwinUpdate
EventActionMap[dtcommon.DeviceETPrefix][dtcommon.TwinETCloudSyncSuffix] = dtcommon.TwinCloudSync