This is an automated email from the ASF dual-hosted git repository.

mmarshall pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new 1c746b1d1b3 [fix][build] Upgrade PyYaml version to 6.0.1 (#20831)
1c746b1d1b3 is described below

commit 1c746b1d1b313dfe5cf808d2be9bd7d7b7a8bb49
Author: Lishen Yao <yaa...@gmail.com>
AuthorDate: Thu Jul 20 13:45:54 2023 +0800

    [fix][build] Upgrade PyYaml version to 6.0.1 (#20831)
    
    (cherry picked from commit f5553a286d5a7795771c79f91f9ae8a412cf4683)
---
 docker/pulsar/Dockerfile                  | 2 +-
 docker/pulsar/scripts/gen-yml-from-env.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docker/pulsar/Dockerfile b/docker/pulsar/Dockerfile
index a5b294063d3..593401f57be 100644
--- a/docker/pulsar/Dockerfile
+++ b/docker/pulsar/Dockerfile
@@ -81,7 +81,7 @@ RUN apt-get -y --purge autoremove \
      && apt-get clean \
      && rm -rf /var/lib/apt/lists/*
 
-RUN pip3 install pyyaml==5.4.1
+RUN pip3 install pyyaml==6.0.1
 
 # Pulsar currently writes to the below directories, assuming the default 
configuration.
 # Note that number 4 is the reason that pulsar components need write access to 
the /pulsar directory.
diff --git a/docker/pulsar/scripts/gen-yml-from-env.py 
b/docker/pulsar/scripts/gen-yml-from-env.py
index ce19436b7e0..aa40408ed5b 100755
--- a/docker/pulsar/scripts/gen-yml-from-env.py
+++ b/docker/pulsar/scripts/gen-yml-from-env.py
@@ -61,7 +61,7 @@ if len(sys.argv) < 2:
 conf_files = sys.argv[1:]
 
 for conf_filename in conf_files:
-    conf = yaml.load(open(conf_filename))
+    conf = yaml.load(open(conf_filename), Loader=yaml.FullLoader)
 
     # update the config
     modified = False

Reply via email to