aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--moon_manager/moon_manager/api/slaves.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/moon_manager/moon_manager/api/slaves.py b/moon_manager/moon_manager/api/slaves.py
index d87b8aa..f5b3fa1 100644
--- a/moon_manager/moon_manager/api/slaves.py
+++ b/moon_manager/moon_manager/api/slaves.py
@@ -64,7 +64,7 @@ class Slaves(Resource):
req = requests.get("http://{}:{}/slaves".format(
self.orchestrator_hostname, self.orchestrator_port
))
- return {"slaves": req.json()}
+ return {"slaves": req.json().get("slaves", dict())}
@check_auth
def patch(self, uuid=None, user_id=None):