Diff comments:
> diff --git a/vm-tools/uvt b/vm-tools/uvt
> index 233ee46..c06b93a 100755
> --- a/vm-tools/uvt
> +++ b/vm-tools/uvt
> @@ -2908,12 +2916,19 @@ def find_latest_release(release_num, iso_type):
>
> text = re.compile(r'<[^>]+>').sub('', html).split('\n')
> matches = []
> + beta = False;
> for line in text:
> if line.startswith(' ' + release_num):
> - matches.append(line[0:].split('/')[0][1:])
> + matches.append(re.search(r'\d+\.\d+(\.\d+)? ',
> line).group().strip())
> + if 'Beta' in line:
> + beta = True;
>
> if len(matches) > 0:
> latest_release = sorted(matches)[-1]
> +
> + if beta:
> + latest_release +='-beta'
> +
The dev release isos rarely work, it might not make sense for you to deploy the
dev release with the ansible script, or it will likely fail more often than not.
> print("Found release %s" % latest_release)
> return latest_release
>
--
https://code.launchpad.net/~sespiros/ubuntu-qa-tools/+git/ubuntu-qa-tools/+merge/409517
Your team Ubuntu Bug Control is subscribed to branch ubuntu-qa-tools:master.
_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-bugcontrol
Post to : ubuntu-bugcontrol@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-bugcontrol
More help : https://help.launchpad.net/ListHelp