On 6 August 2014 19:09, Dimiter Naydenov <[email protected]>
wrote:


> > I would like to change the machine agent so that upgrade mode is
> > only entered if the version in agent.conf is different from the
> > running software version. This would mean that upgrade mode is
> > only entered if there is an actual upgrade to perform.
> If you are referring to Upgraded-To version field in agent config, I
> think this is set after the upgrade completes, so it might be
> unavailable before that.
>

I think this should be OK. The upgradedToVersion field in an agent.conf
will be set to the last version for which upgrade steps were successfully
performed. If this is the same as version.Current then we know there will
be no upgrade to perform. If they are different, or if upgradedToVersion is
not set, then we know there may be upgrade steps to perform.

Thanks,
Menno
-- 
Juju-dev mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev

Reply via email to