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
Branches
Tags
No related merge requests found
import distutils from distutils.util import strtobool
from flask import Blueprint, current_app, jsonify, Response, request from flask import Blueprint, current_app, jsonify, Response, request
from inventory_provider.tasks import worker from inventory_provider.tasks import worker
from inventory_provider.routes import common from inventory_provider.routes import common
...@@ -18,7 +18,7 @@ def update(): ...@@ -18,7 +18,7 @@ def update():
force = request.args.get('force', default='false', type=str) force = request.args.get('force', default='false', type=str)
try: try:
force = distutils.util.strtobool(force) force = strtobool(force)
except ValueError: except ValueError:
force = False force = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment