We *should* be able to delete it. I can't confirm if we have code that
shouldn't be calling it, though. It is also possible there is an interface
out there that thinks it wants both SetPassword and SetMongoPassword but
shouldn't actually call the latter.
John
=:->


On Mon, Jun 16, 2014 at 9:33 AM, Ian Booth <ian.bo...@canonical.com> wrote:

>
>
> 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)
> }
>
>
-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev

Reply via email to