https://codereview.appspot.com/12005048/diff/1/environs/cloudinit.go File environs/cloudinit.go (right):
https://codereview.appspot.com/12005048/diff/1/environs/cloudinit.go#newcode75 environs/cloudinit.go:75: mcfg.MachineEnvironment["JUJU_PROVIDER_TYPE"] = cfg.Type() On 2013/07/31 03:32:27, wallyworld wrote: > JUJU_PROVIDER_TYPE should be a const somewhere since it's used in a few places
Yes, I have been thinking about this for a while. Might as well do it now.
https://codereview.appspot.com/12005048/diff/1/environs/cloudinit/cloudinit.go File environs/cloudinit/cloudinit.go (left):
https://codereview.appspot.com/12005048/diff/1/environs/cloudinit/cloudinit.go#oldcode403 environs/cloudinit/cloudinit.go:403: if cfg.StateServer { On 2013/07/31 03:32:27, wallyworld wrote: > Shouldn't we look in the map to ensure the provider type is set?
It doesn't make it invalid like the others. So, in this case, no I don't think so.
I felt a little uneasy making the change before that put it in there.
https://codereview.appspot.com/12005048/
« Back to merge proposal
https:/ /codereview. appspot. com/12005048/ diff/1/ environs/ cloudinit. go cloudinit. go (right):
File environs/
https:/ /codereview. appspot. com/12005048/ diff/1/ environs/ cloudinit. go#newcode75 cloudinit. go:75: mcfg.MachineEnv ironment[ "JUJU_PROVIDER_ TYPE"]
environs/
= cfg.Type()
On 2013/07/31 03:32:27, wallyworld wrote:
> JUJU_PROVIDER_TYPE should be a const somewhere since it's used in a
few places
Yes, I have been thinking about this for a while. Might as well do it
now.
https:/ /codereview. appspot. com/12005048/ diff/1/ environs/ cloudinit/ cloudinit. go cloudinit/ cloudinit. go (left):
File environs/
https:/ /codereview. appspot. com/12005048/ diff/1/ environs/ cloudinit/ cloudinit. go#oldcode403 cloudinit/ cloudinit. go:403: if cfg.StateServer {
environs/
On 2013/07/31 03:32:27, wallyworld wrote:
> Shouldn't we look in the map to ensure the provider type is set?
It doesn't make it invalid like the others. So, in this case, no I
don't think so.
I felt a little uneasy making the change before that put it in there.
https:/ /codereview. appspot. com/12005048/