OLD | NEW |
1 // Copyright 2014 Canonical Ltd. | 1 // Copyright 2014 Canonical Ltd. |
2 // Licensed under the AGPLv3, see LICENCE file for details. | 2 // Licensed under the AGPLv3, see LICENCE file for details. |
3 | 3 |
4 package upgrades | 4 package upgrades |
5 | 5 |
6 func processDeprecatedEnvSettings(context Context) error { | 6 func processDeprecatedEnvSettings(context Context) error { |
7 st := context.State() | 7 st := context.State() |
8 removeAttrs := []string{ | 8 removeAttrs := []string{ |
9 "public-bucket", | 9 "public-bucket", |
10 "public-bucket-region", | 10 "public-bucket-region", |
11 "public-bucket-url", | 11 "public-bucket-url", |
12 "default-image-id", | 12 "default-image-id", |
13 "default-instance-type", | 13 "default-instance-type", |
14 "shared-storage-port", | 14 "shared-storage-port", |
15 } | 15 } |
16 // TODO (wallyworld) - delete tools-url in 1.20 | 16 // TODO (wallyworld) - delete tools-url in 1.20 |
| 17 // TODO (wallyworld) - delete lxc-use-clone in 1.22 |
17 return st.UpdateEnvironConfig(map[string]interface{}{}, removeAttrs, nil
) | 18 return st.UpdateEnvironConfig(map[string]interface{}{}, removeAttrs, nil
) |
18 } | 19 } |
OLD | NEW |