github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/upgrades/steps_234.go (about) 1 // Copyright 2018 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package upgrades 5 6 // stateStepsFor234 returns upgrade steps for Juju 2.3.4 that manipulate state directly. 7 func stateStepsFor234() []Step { 8 return []Step{ 9 &upgradeStep{ 10 description: "delete cloud image metadata cache", 11 targets: []Target{DatabaseMaster}, 12 run: func(context Context) error { 13 return context.State().DeleteCloudImageMetadata() 14 }, 15 }, 16 } 17 }