~rogpeppe/juju-core/themue-058-debug-log-api

« back to all changes in this revision

Viewing changes to provider/maas/environprovider.go

  • Committer: Frank Mueller
  • Date: 2014-01-23 14:14:49 UTC
  • mfrom: (2152.1.95 juju-core)
  • Revision ID: frank.mueller@canonical.com-20140123141449-b30l57y7gs3wjkpw
debugger: merged trunk and fixed permission and interface problems

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
 
93
93
func (maasEnvironProvider) hostname() (string, error) {
94
94
        // Hack to get container ip addresses properly for MAAS demo.
95
 
        if os.Getenv(osenv.JujuContainerType) == string(instance.LXC) {
 
95
        if os.Getenv(osenv.JujuContainerTypeEnvKey) == string(instance.LXC) {
96
96
                return utils.GetAddressForInterface("eth0")
97
97
        }
98
98
        info := machineInfo{}