Typo in ipaddr filter (#37592)

interger = integer
This commit is contained in:
Fredrik Holmberg 2018-03-23 11:06:53 +01:00 committed by Martin Krizek
parent bcfff1c818
commit e06f3463fd

View file

@ -785,7 +785,7 @@ def next_nth_usable(value, offset):
return False return False
if type(offset) != int: if type(offset) != int:
raise errors.AnsibleFilterError('Must pass in an interger') raise errors.AnsibleFilterError('Must pass in an integer')
if v.size > 1: if v.size > 1:
first_usable, last_usable = _first_last(v) first_usable, last_usable = _first_last(v)
nth_ip = int(netaddr.IPAddress(int(v.ip) + offset)) nth_ip = int(netaddr.IPAddress(int(v.ip) + offset))
@ -807,7 +807,7 @@ def previous_nth_usable(value, offset):
return False return False
if type(offset) != int: if type(offset) != int:
raise errors.AnsibleFilterError('Must pass in an interger') raise errors.AnsibleFilterError('Must pass in an integer')
if v.size > 1: if v.size > 1:
first_usable, last_usable = _first_last(v) first_usable, last_usable = _first_last(v)
nth_ip = int(netaddr.IPAddress(int(v.ip) - offset)) nth_ip = int(netaddr.IPAddress(int(v.ip) - offset))