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
This commit is contained in:
parent
4339da2ee5
commit
dde64fb950
@ -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='<JSON_BODY>',
|
||||
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.'''
|
||||
|
Loading…
x
Reference in New Issue
Block a user