From c3016308f182e88339f69c121aaca52c1165aa52 Mon Sep 17 00:00:00 2001 From: Eric K Date: Sat, 21 Jul 2018 17:02:56 -0700 Subject: [PATCH] correct typo yaml.dumps unlike in json package, it's simply yaml.dump also moved import of yaml to thirdparty package section Change-Id: I207b79d1f3279a1c2505fd324afff9125c983d4e --- congress/library_service/library_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/congress/library_service/library_service.py b/congress/library_service/library_service.py index 0774b1e75..3854ac399 100644 --- a/congress/library_service/library_service.py +++ b/congress/library_service/library_service.py @@ -21,11 +21,11 @@ import copy import json import jsonschema import os -import yaml from oslo_config import cfg from oslo_db import exception as db_exc from oslo_log import log as logging +import yaml from congress.datalog import compile from congress.db import db_library_policies @@ -208,7 +208,7 @@ class LibraryService (data_service.DataService): 'Library policy %s could not be loaded. ' 'Skipped. YAML reproduced here %s', policy.get('name', '[no name]'), - yaml.dumps(policy)) + yaml.dump(policy)) error_policy_count += 1 except Exception: LOG.exception(