Bootstrap is the only command that calls model-constraints 'constraints'.
In other words, you specify model constraints at bootstrap using --constraints options. After bootstrap, these constraints are known and are manipulated as --model-constraints (see help for either get- or set-model-constraints).
I think cleaner solution is to rename this option to be "--model-constraints" as this is what we are really talking about at bootstrap.
Please note that everywhere else in "juju" 'constraints' mean 'application constraints'.
Ok, I can see where the confusion arises..
Bootstrap is the only command that calls model-constraints 'constraints'.
In other words, you specify model constraints at bootstrap using --constraints options. After bootstrap, these constraints are known and are manipulated as --model-constraints (see help for either get- or set-model- constraints) .
I think cleaner solution is to rename this option to be "--model- constraints" as this is what we are really talking about at bootstrap.
Please note that everywhere else in "juju" 'constraints' mean 'application constraints'.