From b2b1da42faeb2b98b268f600bfbcf3d6008bb447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20=27sil2100=27=20Zemczak?= Date: Mon, 13 Feb 2023 14:40:38 +0100 Subject: [PATCH] The autopkgtest policy basically turns adt_ppas into a list, so let's handle the case where the autopkgtest policy runs first. --- britney2/policies/cloud.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/britney2/policies/cloud.py b/britney2/policies/cloud.py index 6e1cc06..b19fbae 100644 --- a/britney2/policies/cloud.py +++ b/britney2/policies/cloud.py @@ -69,7 +69,9 @@ class CloudPolicy(BasePolicy): self.failure_emails = getattr(self.options, "cloud_failure_emails", self.DEFAULT_EMAILS) self.error_emails = getattr(self.options, "cloud_error_emails", self.DEFAULT_EMAILS) - adt_ppas = getattr(self.options, "adt_ppas", "").split() + adt_ppas = getattr(self.options, "adt_ppas", "") + if not isinstance(adt_ppas, list): + adt_ppas = adt_ppas.split() ppas = self._parse_ppas(adt_ppas) if len(ppas) == 0: