def to_table(self, with_names=False):
"""Return the policy as an ascii tables
Args:
with_names (bool): Include object names
"""
table_header = self.table_header()
table_row = self.table_row(with_names=with_names)
table = AsciiTable([table_header, table_row])
table.title = "Policy: " + self.name
return table.table
评论列表
文章目录