docfix, python-netaddr should be netaddr (#43372)

"python-netaddr" is an OS package, but "netaddr" is the pypi package needed in python. Suggesting OS packages for python libs seems in bad form. I like the syntax "python's netaddr" to explain what package manager would have it.
pull/45253/head
Ted Timmons 6 years ago committed by Alicia Cozine
parent 20f21779d3
commit 86341f7520

@ -1080,8 +1080,8 @@ def macaddr(value, query=''):
def _need_netaddr(f_name, *args, **kwargs):
raise errors.AnsibleFilterError('The %s filter requires python-netaddr be '
'installed on the ansible controller' % f_name)
raise errors.AnsibleFilterError("The %s filter requires python's netaddr be "
"installed on the ansible controller" % f_name)
def ip4_hex(arg, delimiter=''):
@ -1120,5 +1120,5 @@ class FilterModule(object):
if netaddr:
return self.filter_map
else:
# Need to install python-netaddr for these filters to work
# Need to install python's netaddr for these filters to work
return dict((f, partial(_need_netaddr, f)) for f in self.filter_map)

Loading…
Cancel
Save