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
This commit is contained in:
Eric K 2018-07-21 17:02:56 -07:00 committed by Eric Kao
parent 5c7d690902
commit c3016308f1
1 changed files with 2 additions and 2 deletions

View File

@ -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(