Skip to content

Commit

Permalink
chore(controller): pretty pods list print
Browse files Browse the repository at this point in the history
  • Loading branch information
lijianguo committed Jul 26, 2021
1 parent 1af2a3a commit cdea890
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rootfs/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ def list(self, *args, **kwargs):
exist_pod_type = list(set([_["type"] for _ in data if _["type"]]))
structure = self.get_app().structure
procfile_structure = self.get_app().procfile_structure
# remove prev release container type
structure = {k: v for k, v in structure.items() if (v != 0 or k in procfile_structure)} # noqa
for _ in structure.keys():
if _ not in exist_pod_type:
replicas = str(autoscale[_]['min']) + '-' + str(autoscale[_]['max']) \
Expand Down

0 comments on commit cdea890

Please sign in to comment.