Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Make dump cgroups work good
Browse files Browse the repository at this point in the history
Signed-off-by: Timofey Titovets <[email protected]>
  • Loading branch information
nefelim4ag committed Apr 22, 2018
1 parent 01eec5e commit 3755a5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ananicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,11 @@ def dump_types(self):
print(json.dumps(self.types, indent=4), flush=True)

def dump_cgroups(self):
print(self.cgroups, flush=True)
cgroups_dict = {}
for cgroup in self.cgroups:
cgroups_dict[cgroup] = self.cgroups[cgroup].__dict__

print(json.dumps(cgroups_dict, indent=4), flush=True)

def dump_rules(self):
print(json.dumps(self.rules, indent=4), flush=True)
Expand Down

0 comments on commit 3755a5a

Please sign in to comment.