summaryrefslogtreecommitdiff
path: root/opendc/models/datacenter.py
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-06-24 09:13:09 +0200
committerGeorgios Andreadis <info@gandreadis.com>2020-06-24 09:13:09 +0200
commitbae760a62fc6a480fbe615dff6a7de03c7fd6d1d (patch)
tree06fc47f9922add14a3ac50fcfdfeb3d4fdc00363 /opendc/models/datacenter.py
parent6fdb3e75dad15523d996e457c216647755b29101 (diff)
Add formatter
Diffstat (limited to 'opendc/models/datacenter.py')
-rw-r--r--opendc/models/datacenter.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/opendc/models/datacenter.py b/opendc/models/datacenter.py
index 21e37b52..d4cbf811 100644
--- a/opendc/models/datacenter.py
+++ b/opendc/models/datacenter.py
@@ -3,13 +3,7 @@ from opendc.models.section import Section
class Datacenter(Model):
- JSON_TO_PYTHON_DICT = {
- 'datacenter': {
- 'id': 'id',
- 'starred': 'starred',
- 'simulationId': 'simulation_id'
- }
- }
+ JSON_TO_PYTHON_DICT = {'datacenter': {'id': 'id', 'starred': 'starred', 'simulationId': 'simulation_id'}}
PATH = '/v1/simulations/{simulationId}/datacenters'