Skip to content
Snippets Groups Projects
Commit 7db67331 authored by Erik Reid's avatar Erik Reid
Browse files

change import to work with python 3.6

parent 5e2d7e81
No related branches found
No related tags found
No related merge requests found
import distutils
from distutils.util import strtobool
from flask import Blueprint, current_app, jsonify, Response, request
from inventory_provider.tasks import worker
from inventory_provider.routes import common
......@@ -18,7 +18,7 @@ def update():
force = request.args.get('force', default='false', type=str)
try:
force = distutils.util.strtobool(force)
force = strtobool(force)
except ValueError:
force = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment