use pointer for configchanges struct
This commit is contained in:
@@ -33,7 +33,7 @@ func (h *Handler) VmModify(w http.ResponseWriter, r *http.Request) {
|
||||
prettyPrint(event)
|
||||
}
|
||||
|
||||
if (models.ConfigChangesReceived{} == event.CloudEvent.Data.ConfigChanges) {
|
||||
if event.CloudEvent.Data.ConfigChanges == nil {
|
||||
h.Logger.Debug("Received event contains no config change")
|
||||
} else {
|
||||
h.Logger.Debug("Received event contains config change info")
|
||||
|
Reference in New Issue
Block a user