1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

avoid modifying module var by just passing the substring to the append

This commit is contained in:
Brian Coca 2014-10-30 13:53:05 -04:00
parent 94a732fb1a
commit 0317e7b910

View file

@ -190,8 +190,7 @@ def get_module_list_text(module_list):
desc = desc[:linelimit] + '...'
if module.startswith('_'): # Handle deprecated
module = module[1:]
deprecated.append("%-*s %-*.*s" % (displace, module, linelimit, len(desc), desc))
deprecated.append("%-*s %-*.*s" % (displace, module[1:], linelimit, len(desc), desc))
else:
text.append("%-*s %-*.*s" % (displace, module, linelimit, len(desc), desc))
except: