~rogpeppe/juju-core/azure

« back to all changes in this revision

Viewing changes to environs/maas/instance.go

  • Committer: Tarmac
  • Author(s): jtv at canonical
  • Date: 2013-07-17 12:10:27 UTC
  • mfrom: (1473.1.1 maas-loggo)
  • Revision ID: tarmac-20130717121027-xwqlhurg8sgq90gk
[r=jtv] Convert MAAS provider to loggo.

We've been told this was desired, so we might as well do it. Why keep the
obsolete approach around to set a bad example?

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
import (
7
7
        "launchpad.net/gomaasapi"
 
8
 
8
9
        "launchpad.net/juju-core/environs"
9
10
        "launchpad.net/juju-core/instance"
10
 
        "launchpad.net/juju-core/log"
11
11
)
12
12
 
13
13
type maasInstance struct {
49
49
 
50
50
// MAAS does not do firewalling so these port methods do nothing.
51
51
func (mi *maasInstance) OpenPorts(machineId string, ports []instance.Port) error {
52
 
        log.Debugf("environs/maas: unimplemented OpenPorts() called")
 
52
        logger.Debugf("unimplemented OpenPorts() called")
53
53
        return nil
54
54
}
55
55
 
56
56
func (mi *maasInstance) ClosePorts(machineId string, ports []instance.Port) error {
57
 
        log.Debugf("environs/maas: unimplemented ClosePorts() called")
 
57
        logger.Debugf("unimplemented ClosePorts() called")
58
58
        return nil
59
59
}
60
60
 
61
61
func (mi *maasInstance) Ports(machineId string) ([]instance.Port, error) {
62
 
        log.Debugf("environs/maas: unimplemented Ports() called")
 
62
        logger.Debugf("unimplemented Ports() called")
63
63
        return []instance.Port{}, nil
64
64
}