Double checking. Without the fix, got:
$ juju -v deploy --constraints="cpu-cores=1 mem=4G" ubuntu ubuntu1 $ nova show 7c99e0ce-5044-4e50-aeab-7f15e9b79c65 | grep flavor | flavor | cpu3-ram4-disk10-ephemeral20 (1023)
$ juju deploy --constraints="cpu-cores=2 mem=4G" ubuntu ubuntu2 $ nova show ca0383cf-b553-4052-8056-d3793aedde5b | flavor | m1.medium (3)
With the attached branch, confirmed working per previous comment.
Double checking. Without the fix, got:
$ juju -v deploy --constraints= "cpu-cores= 1 mem=4G" ubuntu ubuntu1 5044-4e50- aeab-7f15e9b79c 65 | grep flavor disk10- ephemeral20 (1023)
$ nova show 7c99e0ce-
| flavor | cpu3-ram4-
$ juju deploy --constraints= "cpu-cores= 2 mem=4G" ubuntu ubuntu2 b553-4052- 8056-d3793aedde 5b
$ nova show ca0383cf-
| flavor | m1.medium (3)
With the attached branch, confirmed working per previous comment.