|
Reinstate default-image-id and default-instance-type outside EC2
MachineProvider.get_legacy_config_keys should return any *set* config keys
that are only valid in legacy deployments (ie those bootstrapped *before*
upgrading to new config format); bootstrap, deploy, and add-unit are
responsible for checking this and taking action (which might be to warn and
continue (in a legacy environment) or to bomb out (in a new environment)).
The EC2 provider itself also now handles those keys again, if they're there,
and considers them to take precedence over constraints.
https://code.launchpad.net/~fwereade/juju/handle-default-foo-options-outside-ec2/+merge/99026
Requires: https://code.launchpad.net/~fwereade/juju/rework-arch-constraint/+merge/99003
(do not edit description out of merge proposal)
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+403 lines, -76 lines) |
Patch |
 |
A |
[revision details]
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
juju/control/add_unit.py
|
View
|
1
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
juju/control/bootstrap.py
|
View
|
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
juju/control/deploy.py
|
View
|
1
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
A |
juju/control/legacy.py
|
View
|
1
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
 |
M |
juju/control/tests/test_add_unit.py
|
View
|
|
2 chunks |
+54 lines, -1 line |
0 comments
|
Download
|
 |
M |
juju/control/tests/test_bootstrap.py
|
View
|
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
juju/control/tests/test_deploy.py
|
View
|
1
|
2 chunks |
+64 lines, -1 line |
0 comments
|
Download
|
 |
M |
juju/environment/config.py
|
View
|
|
2 chunks |
+47 lines, -52 lines |
0 comments
|
Download
|
 |
M |
juju/environment/tests/test_config.py
|
View
|
|
5 chunks |
+65 lines, -11 lines |
0 comments
|
Download
|
 |
M |
juju/providers/common/base.py
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
juju/providers/common/tests/test_base.py
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
juju/providers/dummy.py
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
juju/providers/ec2/__init__.py
|
View
|
1
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
juju/providers/ec2/tests/test_provider.py
|
View
|
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
M |
juju/providers/ec2/tests/test_utils.py
|
View
|
|
2 chunks |
+31 lines, -2 lines |
0 comments
|
Download
|
 |
M |
juju/providers/ec2/utils.py
|
View
|
|
2 chunks |
+12 lines, -7 lines |
0 comments
|
Download
|
 |
M |
juju/state/environment.py
|
View
|
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
juju/state/tests/test_environment.py
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
Total messages: 5
|