diff options
author | Ruan HE <ruan.he@orange.com> | 2018-01-19 13:08:11 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-01-19 13:08:11 +0000 |
commit | 36fe604a69eaa4c36f309bd68e36d75c3850c5c4 (patch) | |
tree | 1f1c712f31a6fe9877a415c4eedce1ac73181667 | |
parent | 0f9e05e3b2984ee0f10532187828605438d2699a (diff) | |
parent | cf3825386f717182e4afb6bd885bd88c2c44365f (diff) |
Merge "Fix a bug in slave API."
-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): |