<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 6 August 2014 19:09, Dimiter Naydenov <span dir="ltr"><<a href="mailto:dimiter.naydenov@canonical.com" target="_blank">dimiter.naydenov@canonical.com</a>></span> wrote:<br>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">> I would like to change the machine agent so that upgrade mode is<br>
> only entered if the version in agent.conf is different from the<br>
> running software version. This would mean that upgrade mode is<br>
> only entered if there is an actual upgrade to perform.<br>
</div>If you are referring to Upgraded-To version field in agent config, I<br>
think this is set after the upgrade completes, so it might be<br>
unavailable before that.<br></blockquote><div><br></div><div>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.</div>
<div> </div><div>Thanks,</div><div>Menno </div></div></div></div>