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

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.
This commit is contained in:
Ted Timmons 2018-09-05 11:42:51 -07:00 committed by Alicia Cozine
parent 20f21779d3
commit 86341f7520

View file

@ -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)