From dde64fb95046904a8d402ca38f0f715fcba55a82 Mon Sep 17 00:00:00 2001 From: "cao.yuan" Date: Mon, 25 Feb 2019 00:45:47 +0800 Subject: [PATCH] Update json module to jsonutils oslo project provide jsonutils, and monascaclient use it in many place[1], this PS to update the remained json moudule to oslo jsonutils for consistency. [1]: https://github.com/openstack/python-monascaclient/search?utf8=%E2%9C%93&q=jsonutils&type= Change-Id: I895bc58dafa250b1279ffe70f779c5cc1e865db1 --- monascaclient/v2_0/shell.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/monascaclient/v2_0/shell.py b/monascaclient/v2_0/shell.py index 9b05d8c..8019d77 100644 --- a/monascaclient/v2_0/shell.py +++ b/monascaclient/v2_0/shell.py @@ -15,7 +15,6 @@ # limitations under the License. import datetime -import json import numbers import time @@ -91,7 +90,7 @@ def do_metric_create(mc, args): @utils.arg('jsonbody', metavar='', - type=json.loads, + type=jsonutils.loads, help='The raw JSON body in single quotes. See api doc.') def do_metric_create_raw(mc, args): '''Create metric from raw json body.'''