summaryrefslogtreecommitdiff
path: root/opendc/api/v1/datacenters/datacenterId/endpoint.py
diff options
context:
space:
mode:
Diffstat (limited to 'opendc/api/v1/datacenters/datacenterId/endpoint.py')
-rw-r--r--opendc/api/v1/datacenters/datacenterId/endpoint.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/opendc/api/v1/datacenters/datacenterId/endpoint.py b/opendc/api/v1/datacenters/datacenterId/endpoint.py
index 75d0a9cf..9444fb80 100644
--- a/opendc/api/v1/datacenters/datacenterId/endpoint.py
+++ b/opendc/api/v1/datacenters/datacenterId/endpoint.py
@@ -1,7 +1,8 @@
from opendc.models.datacenter import Datacenter
-from opendc.util import database, exceptions
+from opendc.util import exceptions
from opendc.util.rest import Response
+
def GET(request):
"""Get this Datacenter."""
@@ -9,7 +10,7 @@ def GET(request):
try:
request.check_required_parameters(
- path = {
+ path={
'datacenterId': 'int'
}
)