diff options
Diffstat (limited to 'moonv4/moon_orchestrator')
-rw-r--r-- | moonv4/moon_orchestrator/moon_orchestrator/api/pods.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/moonv4/moon_orchestrator/moon_orchestrator/api/pods.py b/moonv4/moon_orchestrator/moon_orchestrator/api/pods.py index c5c5b2c4..319788e5 100644 --- a/moonv4/moon_orchestrator/moon_orchestrator/api/pods.py +++ b/moonv4/moon_orchestrator/moon_orchestrator/api/pods.py @@ -81,7 +81,14 @@ class Pods(Resource): manager_data=request.json, active_context=None, active_context_name=None) - return {"pods": self.driver.get_pods(request.json.get("pdp_id"))} + pods = {} + for _pod_key, _pod_values in self.driver.get_pods().items(): + pods[_pod_key] = [] + for _pod_value in _pod_values: + if _pod_value['namespace'] != "moon": + continue + pods[_pod_key].append(_pod_value) + return {"pods": pods} @check_auth def delete(self, uuid=None, user_id=None): |