Merge "Update json module to jsonutils"

This commit is contained in:
Zuul 2019-04-04 17:16:48 +00:00 committed by Gerrit Code Review
commit 2fb95cb8bd
1 changed files with 2 additions and 3 deletions

View File

@ -16,10 +16,9 @@
"""Panko v2 event action implementations"""
import copy
import json
from osc_lib.command import command
from osc_lib import utils
from oslo_serialization import jsonutils
class EventList(command.Lister):
@ -94,7 +93,7 @@ class EventShow(command.ShowOne):
ac = self.app.client_manager.event
event = ac.event.get(message_id=parsed_args.message_id)
data = copy.deepcopy(event._info)
data.update({'traits': json.dumps(data['traits'], indent=4)})
data.update({'traits': jsonutils.dumps(data['traits'], indent=4)})
return self.dict2columns(data)