canonical-ubuntu-qa team mailing list archive
-
canonical-ubuntu-qa team
-
Mailing list archive
-
Message #03674
[Merge] ~andersson123/autopkgtest-cloud:fix-allowed-requestor-teams into autopkgtest-cloud:master
Tim Andersson has proposed merging ~andersson123/autopkgtest-cloud:fix-allowed-requestor-teams into autopkgtest-cloud:master.
Requested reviews:
Canonical's Ubuntu QA (canonical-ubuntu-qa)
For more details, see:
https://code.launchpad.net/~andersson123/autopkgtest-cloud/+git/autopkgtest-cloud/+merge/463829
--
Your team Canonical's Ubuntu QA is requested to review the proposed merge of ~andersson123/autopkgtest-cloud:fix-allowed-requestor-teams into autopkgtest-cloud:master.
diff --git a/charms/focal/autopkgtest-web/webcontrol/request/submit.py b/charms/focal/autopkgtest-web/webcontrol/request/submit.py
index 5848e64..d0b572d 100644
--- a/charms/focal/autopkgtest-web/webcontrol/request/submit.py
+++ b/charms/focal/autopkgtest-web/webcontrol/request/submit.py
@@ -42,9 +42,8 @@ try:
allowed_teams = pathlib.Path(
"/home/ubuntu/.config/autopkgtest-web/allowed-requestor-teams"
)
- ALLOWED_REQUESTOR_TEAMS = allowed_teams.read_text(
- encoding="utf-8"
- ).splitlines()
+ for team in allowed_teams.read_text(encoding="utf-8").splitlines():
+ ALLOWED_REQUESTOR_TEAMS.append(team.rstrip())
except Exception as e:
logging.warning(f"Reading allowed teams failed with {e}")