Diff comments:
> diff --git a/charms/focal/autopkgtest-web/webcontrol/download-all-results
> b/charms/focal/autopkgtest-web/webcontrol/download-all-results
> index e0a11b0..267e792 100755
> --- a/charms/focal/autopkgtest-web/webcontrol/download-all-results
> +++ b/charms/focal/autopkgtest-web/webcontrol/download-all-results
> @@ -24,13 +23,33 @@ import time
> import urllib.parse
> from urllib.request import urlopen
>
> +import amqplib.client_0_8 as amqp
> from distro_info import UbuntuDistroInfo
> from helpers.utils import get_test_id, init_db
>
> LOGGER = logging.getLogger(__name__)
> +WRITER_EXCHANGE_NAME = "sqlite-write-me.fanout"
>
> config = None
> db_con = None
This variable is no longer used, can be deleted.
> +amqp_con = None
> +
> +
> +def amqp_connect():
> + """Connect to AMQP server"""
> +
> + cp = configparser.ConfigParser()
> + cp.read(os.path.expanduser("~ubuntu/autopkgtest-cloud.conf"))
> + amqp_uri = cp["amqp"]["uri"]
> + parts = urllib.parse.urlsplit(amqp_uri, allow_fragments=False)
> + amqp_con = amqp.Connection(
> + parts.hostname, userid=parts.username, password=parts.password
> + )
> + logging.info(
> + "Connected to AMQP server at %s@%s" % (parts.username,
> parts.hostname)
> + )
> +
> + return amqp_con
>
>
> def list_remote_container(container_url):
--
https://code.launchpad.net/~andersson123/autopkgtest-cloud/+git/autopkgtest-cloud/+merge/460847
Your team Canonical's Ubuntu QA is requested to review the proposed merge of
~andersson123/autopkgtest-cloud:d-r-d-a-r-merging into autopkgtest-cloud:master.
--
Mailing list: https://launchpad.net/~canonical-ubuntu-qa
Post to : canonical-ubuntu-qa@lists.launchpad.net
Unsubscribe : https://launchpad.net/~canonical-ubuntu-qa
More help : https://help.launchpad.net/ListHelp