~ubuntuone-hackers/conn-check/trunk

« back to all changes in this revision

Viewing changes to conn_check/main.py

  • Committer: Ubuntu One Auto Copilot
  • Author(s): Guillermo Gonzalez
  • Date: 2023-07-04 14:17:08 UTC
  • mfrom: (143.1.2 conn-check-focal)
  • Revision ID: otto-copilot@canonical.com-20230704141708-s8dfji74114kniy1
fix 2 calls to yaml.load, use yaml.safe_load instead

Merged from https://code.launchpad.net/~verterok/conn-check/focal/+merge/445911

Show diffs side-by-side

added added

removed removed

Lines of Context:
351
351
        """Pre-load YAML checks file into a descriptions property."""
352
352
 
353
353
        with open(self.options.config_file) as f:
354
 
            self.descriptions = yaml.load(f)
 
354
            self.descriptions = yaml.safe_load(f)
355
355
 
356
356
    def run(self):
357
357
        """Run/validate/dry-run the given command with options."""