|
|
@@ -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
|