move csp logic to cloudcmd (#2311)

This commit is contained in:
Adrian Stobbe 2023-09-07 12:10:36 +02:00 committed by GitHub
parent 25ba8ecfed
commit 0eb9ca2e18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 8 deletions

View file

@ -136,7 +136,7 @@ func (u *upgradeApplyCmd) upgradeApply(cmd *cobra.Command, upgradeDir string, fl
if err != nil {
return err
}
if upgradeRequiresIAMMigration(conf.GetProvider()) {
if cloudcmd.UpgradeRequiresIAMMigration(conf.GetProvider()) {
cmd.Println("WARNING: This upgrade requires an IAM migration. Please make sure you have applied the IAM migration using `iam upgrade apply` before continuing.")
if !flags.yes {
yes, err := askToConfirm(cmd, "Did you upgrade the IAM resources?")