func (c *Controller) DefinedContainer(name string) (bool, error) {
	devs, err := c.machine.Devices(gomaasapi.DevicesArgs{Hostname: []string{name}})
	if err != nil {
		return false, err
	}

	if len(devs) == 1 {
		return true, nil
	}

	return false, nil
}
func (c *Controller) DefinedContainer(name string) (bool, error) {
	devs, err := c.machine.Devices(gomaasapi.DevicesArgs{Hostname: []string{name}})
	if err != nil {
		return false, err
	}

	if len(devs) == 1 {
		return true, nil
	}

	return false, nil
}
func ( c * Controller ) DefinedContainer ( name string ) ( bool , error ) { devs , err := c . machine . Devices ( gomaasapi . DevicesArgs { Hostname : [ ] string { name } } ) if err != nil { return false , err } if len ( devs ) == 1 { return true , nil } return false , nil }
// DefinedContainer returns true if the container is defined in MAAS
DefinedContainer returns true if the container is defined in MAAS