|
@@ -28,11 +28,11 @@ func GetCloudStatus(cloudStatus *string, lastCloudStatus *string, turnLength int
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-func GetCloudConfig(cloudStatus string, lastCloudStatus string, turnLength int) {
|
|
|
|
|
|
+func GetCloudConfig(cloudStatus *string, lastCloudStatus *string, turnLength int) {
|
|
for {
|
|
for {
|
|
time.Sleep(time.Duration(turnLength) * time.Second)
|
|
time.Sleep(time.Duration(turnLength) * time.Second)
|
|
c_log.GlobalLogger.Error("cloudStatus:", cloudStatus)
|
|
c_log.GlobalLogger.Error("cloudStatus:", cloudStatus)
|
|
- if cloudStatus == "CHANGE" {
|
|
|
|
|
|
+ if *cloudStatus == "CHANGE" {
|
|
fmt.Println("2")
|
|
fmt.Println("2")
|
|
commonConfig.InitPlatformConfig()
|
|
commonConfig.InitPlatformConfig()
|
|
}
|
|
}
|