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:
parent
20f21779d3
commit
86341f7520
1 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue