Skip to content

Commit

Permalink
Merge pull request #111 from virtapi/flask-import-fixes
Browse files Browse the repository at this point in the history
fix flask_restful imports
  • Loading branch information
foxxx0 committed Jun 17, 2020
2 parents 6ba9960 + 75f2cd5 commit 4a61580
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 10 deletions.
5 changes: 1 addition & 4 deletions marmoset/webserver/dhcp.py
@@ -1,9 +1,6 @@
"""File to handle all web interaction with DHCP records."""
from flask import request
from flask.ext.restful import Resource
from flask.ext.restful import abort
from flask.ext.restful import reqparse
from flask.ext.restful import url_for
from flask_restful import Resource, abort, reqparse, url_for

from marmoset import config as config_reader
from marmoset import dhcp
Expand Down
2 changes: 1 addition & 1 deletion marmoset/webserver/imagecatalog.py
@@ -1,5 +1,5 @@
"""Class for handling image metadata."""
from flask.ext.restful import Resource, abort
from flask_restful import Resource, abort
from ..imagecatalog.catalog import ImageCatalog


Expand Down
2 changes: 1 addition & 1 deletion marmoset/webserver/installimage.py
@@ -1,6 +1,6 @@
"""File to handle all web interaction with installimage configurations."""
from flask import request, make_response
from flask.ext.restful import Resource, url_for, abort
from flask_restful import Resource, url_for, abort

from ..installimage.installimage_config import InstallimageConfig
from ..installimage.req_argument_parser import ReqArgumentParser
Expand Down
2 changes: 1 addition & 1 deletion marmoset/webserver/installstatus.py
@@ -1,5 +1,5 @@
"""handle all web interaction with status updates from our installimage."""
from flask.ext.restful import reqparse, Resource, abort
from flask_restful import reqparse, Resource, abort
from flask import request
from marmoset.installstatus import InstallStatus
from marmoset import validation
Expand Down
2 changes: 1 addition & 1 deletion marmoset/webserver/pxe.py
@@ -1,5 +1,5 @@
"""File to handle all web interaction with PXE records."""
from flask.ext.restful import reqparse, Resource, url_for, abort
from flask_restful import reqparse, Resource, url_for, abort

from .. import pxe
from marmoset import config as config_reader
Expand Down
2 changes: 1 addition & 1 deletion marmoset/webserver/vm.py
@@ -1,5 +1,5 @@
"""File to handle all web interaction with virtual machines."""
from flask.ext.restful import reqparse, Resource, abort
from flask_restful import reqparse, Resource, abort

from .. import virt

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -15,7 +15,7 @@ def read(fname):

setup(
name='marmoset',
version='0.7.0',
version='0.7.1',
description='Simple HTTP API for managing stuff on libvirt hosts',
keywords='dhcp dhcpd ldap libvirt management vms virtual-machines',
author='https://github.com/virtapi/marmoset/graphs/contributors',
Expand Down

0 comments on commit 4a61580

Please sign in to comment.