https://codereview.appspot.com/12333043/diff/1/container/lxc/instance.go#newcode30
container/lxc/instance.go:30: return string(state)
I see this, and it looks good, but I'm a bit confused as to why it
doesn't work with the local provider. (Well, I can see why, but I can't
understand the motivation -- can anyone think of a drawback to putting
the lxc.Instances into the local.Instances so that we can access this
method? I can understand differences in address handling, but I don't
think the same forces apply here.)
https://codereview.appspot.com/12333043/diff/1/environs/polling_test.go#oldcode63
environs/polling_test.go:63: func (*dnsNameFakeInstance) Ports(string)
([]instance.Port, error) { return nil, nil }
Complete side note: would it be useful for dnsNameFakeInstance to just
embed an instance.Instance, and thus panic on use of unwanted methods?
Feels a bit saner than just returning nonsense without error...
LGTM, this is great. I'd love to see a followup for the local provider,
that should be quick and easy.
https:/ /codereview. appspot. com/12333043/ diff/1/ container/ lxc/instance. go lxc/instance. go (right):
File container/
https:/ /codereview. appspot. com/12333043/ diff/1/ container/ lxc/instance. go#newcode30 lxc/instance. go:30: return string(state)
container/
I see this, and it looks good, but I'm a bit confused as to why it
doesn't work with the local provider. (Well, I can see why, but I can't
understand the motivation -- can anyone think of a drawback to putting
the lxc.Instances into the local.Instances so that we can access this
method? I can understand differences in address handling, but I don't
think the same forces apply here.)
https:/ /codereview. appspot. com/12333043/ diff/1/ environs/ local/instance. go local/instance. go (right):
File environs/
https:/ /codereview. appspot. com/12333043/ diff/1/ environs/ local/instance. go#newcode27 local/instance. go:27: return ""
environs/
I'd like to do what I suggested earlier and expose the lxc instance
state here. But please do it in a followup, and run it by thumper first,
because if there's a reason not to do it he'll know what it is.
https:/ /codereview. appspot. com/12333043/ diff/1/ environs/ maas/instance. go maas/instance. go (right):
File environs/
https:/ /codereview. appspot. com/12333043/ diff/1/ environs/ maas/instance. go#newcode26 maas/instance. go:26: // TODO determine MAAS instance state
environs/
Add a bug in LP and note the number here please; and ping bigjools, or
someone else who knows maas, to find out what'll be needed to implement
it, and note that in the bug.
https:/ /codereview. appspot. com/12333043/ diff/1/ environs/ polling_ test.go polling_ test.go (left):
File environs/
https:/ /codereview. appspot. com/12333043/ diff/1/ environs/ polling_ test.go# oldcode63 polling_ test.go: 63: func (*dnsNameFakeIn stance) Ports(string)
environs/
([]instance.Port, error) { return nil, nil }
Complete side note: would it be useful for dnsNameFakeInstance to just
embed an instance.Instance, and thus panic on use of unwanted methods?
Feels a bit saner than just returning nonsense without error...
https:/ /codereview. appspot. com/12333043/