Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add support for model type #19
Conversation
| @@ -1176,6 +1192,10 @@ func newModelFromValid(valid map[string]interface{}, importVersion int) (*model, | ||
| CloudRegion_: valid["cloud-region"].(string), | ||
| StatusHistory_: newStatusHistory(), | ||
| } | ||
| + if rawType, found := valid["type"]; found { |
howbazaar
Aug 22, 2017
Owner
In other places we have explicitly depended on the importVersion rather than existence of a value in the valid map.
howbazaar
merged commit fedf2ab
into
juju:master
Aug 22, 2017
mjs
deleted the
mjs:model-type
branch
Aug 22, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mjs commentedAug 22, 2017
Juju is starting to introduce different model types. This requires support in the model serialisation format.
This bumps the serialisation format.