reid vor 2 Jahren
Ursprung
Commit
5b1de0483a
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      config/config.go

+ 2 - 2
config/config.go

@@ -120,11 +120,11 @@ func UpdateConf(values map[string]interface{}) error {
 func UpdateContainerState(name string, containerState structs.ContainerState) {
 	contMutex.Lock()
 	defer contMutex.Unlock()
-	GSContainers[name] = state
+	GSContainers[name] = containerState
 }
 
 // get the current container state
-func GetContainerState() structs.SysConfig {
+func GetContainerState() structs.ContainerState {
 	contMutex.Lock()
 	defer contMutex.Unlock()
 	return GSContainers