mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
avoid modifying module var by just passing the substring to the append
This commit is contained in:
@@ -190,8 +190,7 @@ def get_module_list_text(module_list):
|
|||||||
desc = desc[:linelimit] + '...'
|
desc = desc[:linelimit] + '...'
|
||||||
|
|
||||||
if module.startswith('_'): # Handle deprecated
|
if module.startswith('_'): # Handle deprecated
|
||||||
module = module[1:]
|
deprecated.append("%-*s %-*.*s" % (displace, module[1:], linelimit, len(desc), desc))
|
||||||
deprecated.append("%-*s %-*.*s" % (displace, module, linelimit, len(desc), desc))
|
|
||||||
else:
|
else:
|
||||||
text.append("%-*s %-*.*s" % (displace, module, linelimit, len(desc), desc))
|
text.append("%-*s %-*.*s" % (displace, module, linelimit, len(desc), desc))
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user