diff options
| author | Andrew Bogott <abogott@wikimedia.org> | 2012-07-03 00:16:36 -0500 |
|---|---|---|
| committer | Andrew Bogott <abogott@wikimedia.org> | 2012-07-03 00:48:52 -0500 |
| commit | 85f6662f25e9d2696ec6086a1423c1b93a58cb0c (patch) | |
| tree | 6ffafa3ec536a70aa76267dead8891f5406fc4dc /openstack/common/notifier | |
| parent | 506486550480fb222a92447e1e8baca855d126aa (diff) | |
Switch common files to using jsonutils.
For blueprint use-common-jsonutils
Pretty much just a search and replace.
Change-Id: I66f63e7b0ff82a37d8a6b9acef94f4e10a45bf90
Diffstat (limited to 'openstack/common/notifier')
| -rw-r--r-- | openstack/common/notifier/log_notifier.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openstack/common/notifier/log_notifier.py b/openstack/common/notifier/log_notifier.py index 594fd3e..3b025f0 100644 --- a/openstack/common/notifier/log_notifier.py +++ b/openstack/common/notifier/log_notifier.py @@ -13,9 +13,9 @@ # License for the specific language governing permissions and limitations # under the License. -import json from openstack.common import cfg +from openstack.common import jsonutils from openstack.common import log as logging @@ -31,4 +31,4 @@ def notify(_context, message): priority = priority.lower() logger = logging.getLogger( 'openstack.common.notification.%s' % message['event_type']) - getattr(logger, priority)(json.dumps(message)) + getattr(logger, priority)(jsonutils.dumps(message)) |
