summaryrefslogtreecommitdiffstats
path: root/ipaserver/advise/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipaserver/advise/base.py')
-rw-r--r--ipaserver/advise/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipaserver/advise/base.py b/ipaserver/advise/base.py
index a2dc9ccee..f7e8ef5e4 100644
--- a/ipaserver/advise/base.py
+++ b/ipaserver/advise/base.py
@@ -168,11 +168,11 @@ class IpaAdvise(admintool.AdminTool):
self.print_header('List of available advices')
max_keyword_len = max(
- (len(advice.__name__) for advice in advise_api.Advice))
+ (len(advice.name) for advice in advise_api.Advice))
for advice in advise_api.Advice:
description = getattr(advice, 'description', '')
- keyword = advice.__name__.replace('_', '-')
+ keyword = advice.name.replace('_', '-')
# Compute the number of spaces needed for the table to be aligned
offset = max_keyword_len - len(keyword)