fix(cache): fix the CacheController
This was missed in
MODIFY
clouddriver-web/src/main/groovy/com/netflix/spinnaker/clouddriver/controllers/CacheController.groovy
clouddriver-web/src/main/groovy/com/netflix/spinnaker/clouddriver/controllers/CacheController.groovy
@@ -18,7 +18,7 @@ package com.netflix.spinnaker.clouddriver.controllers
import com.netflix.spinnaker.cats.cache.AgentIntrospection
import com.netflix.spinnaker.cats.cache.CacheIntrospectionStore
-import com.netflix.spinnaker.clouddriver.cache.OnDemandAgent
+import com.netflix.spinnaker.clouddriver.cache.OnDemandCacheStatus
import com.netflix.spinnaker.clouddriver.cache.OnDemandCacheUpdater
import com.netflix.spinnaker.clouddriver.cache.OnDemandType
import com.netflix.spinnaker.kork.web.exceptions.NotFoundException
@@ -45,7 +45,7 @@ class CacheController {
}?.handle(onDemandType, cloudProvider, data)
def cacheStatus = onDemandCacheResult?.status
- def httpStatus = (cacheStatus == OnDemandCacheUpdater.OnDemandCacheStatus.PENDING) ? HttpStatus.ACCEPTED : HttpStatus.OK
+ def httpStatus = (cacheStatus == OnDemandCacheStatus.PENDING) ? HttpStatus.ACCEPTED : HttpStatus.OK
return new ResponseEntity(
[

fix(cache): fix the CacheController (#4881)

This was missed in #4865

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>