[Canonical-juju-qa] Cursed (final): #1479 gitbranch:master:github.com/juju/juju ead2e2d6 (functional-ha-recovery, hp-upgrade-precise-amd64)

Ian Booth ian.booth at canonical.com
Mon Jun 16 05:33:54 UTC 2014



On 16/06/14 15:25, John Meinel wrote:
> So while that used to be true, we no longer call SetMongoPassword for
> anything other than State agents. So unit agents should *not* have a Mongo
> user anyway, and machine agents should only have Mongo users if they have
> the JobManageEnviron which means they have full admin rights in the
> database.
>


So, that means we can delete this code?

// SetMongoPassword sets the password the agent responsible for the unit
// should use to communicate with the state servers.  Previous passwords
// are invalidated.
func (u *Unit) SetMongoPassword(password string) error {
	return u.st.setMongoPassword(u.Tag(), password)
}




More information about the Juju-dev mailing list