Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
There are two parts. One separate the concerns of the terraform provider from the internal juju code which uses the juju api.
Two, add Base to the schema for machines, while deprecating Series. Regardless of which is supplied by the user, a base will be provided to the AddMachine api call to juju.
A string validator to cover Bases is also added, its used by machine and will be used for application as well.
Part of the effort to replace Series with Base within the terraform plans for juju as seen in #249
Type of change
QA steps
Here is a plan to test the change. Please set manual machines as well, to ensure no changes there.