From 0317e7b91029ce90079802f125155c1944cf279c Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 30 Oct 2014 13:53:05 -0400 Subject: [PATCH] avoid modifying module var by just passing the substring to the append --- bin/ansible-doc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/ansible-doc b/bin/ansible-doc index 5a708a421c3..aed7d4d23c7 100755 --- a/bin/ansible-doc +++ b/bin/ansible-doc @@ -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: