[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] fix yaml loading for pyyaml 6.0 (Also safe_load() makes more sense anyway)

Mattia Rizzolo (@mattia) gitlab at salsa.debian.org
Fri Apr 28 15:20:52 BST 2023



Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net


Commits:
bf6fdb5e by Mattia Rizzolo at 2023-04-28T16:20:31+02:00
fix yaml loading for pyyaml 6.0 (Also safe_load() makes more sense anyway)

Closes: #1034116
Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


1 changed file:

- bin/deploy_kgb.py


Changes:

=====================================
bin/deploy_kgb.py
=====================================
@@ -16,7 +16,7 @@ secrets = '/srv/jenkins/kgb/secrets.yml'
 outputs = '/srv/jenkins/kgb/'
 
 with open(secrets) as fd:
-    passwords = yaml.load(fd)
+    passwords = yaml.safe_load(fd)
 
 channels = [
     {'name': 'debconf-video', 'id': 'debconf-video'},



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/bf6fdb5edeb2a57afe25cb9b3cb2f76b9fbf0068

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/bf6fdb5edeb2a57afe25cb9b3cb2f76b9fbf0068
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20230428/e2f1a334/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list