diff options
author | Thomas Duval <thomas.duval@orange.com> | 2018-01-19 13:58:50 +0100 |
---|---|---|
committer | Thomas Duval <thomas.duval@orange.com> | 2018-01-19 13:58:50 +0100 |
commit | cf3825386f717182e4afb6bd885bd88c2c44365f (patch) | |
tree | 1a9f3c13f8454f438718180508875efd8b949ba4 /moon_manager | |
parent | b0f7daa6f05a1ea2308e82cfc05a1b8d10d4e5dc (diff) |
Fix a bug in slave API.
Change-Id: I50a424c0aaba32a35d94966bee051ca673f1fe25
Diffstat (limited to 'moon_manager')
-rw-r--r-- | moon_manager/moon_manager/api/slaves.py | 2 |
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 d87b8aad..f5b3fa14 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): |