log: Previous trick about getting rid of setting didnt work, forgot to use metadata instead of self.metadata

This commit is contained in:
Alexandre Aubin 2023-02-20 15:28:10 +01:00
parent 2a16f289ea
commit 848adf89c8

View file

@ -605,7 +605,7 @@ class OperationLogger:
k: v for k, v in metadata["env"].items() if k == k.upper()
}
dump = yaml.safe_dump(self.metadata, default_flow_style=False)
dump = yaml.safe_dump(metadata, default_flow_style=False)
for data in self.data_to_redact:
# N.B. : we need quotes here, otherwise yaml isn't happy about loading the yml later
dump = dump.replace(data, "'**********'")