parent
bcfff1c818
commit
e06f3463fd
1 changed files with 2 additions and 2 deletions
|
@ -785,7 +785,7 @@ def next_nth_usable(value, offset):
|
|||
return False
|
||||
|
||||
if type(offset) != int:
|
||||
raise errors.AnsibleFilterError('Must pass in an interger')
|
||||
raise errors.AnsibleFilterError('Must pass in an integer')
|
||||
if v.size > 1:
|
||||
first_usable, last_usable = _first_last(v)
|
||||
nth_ip = int(netaddr.IPAddress(int(v.ip) + offset))
|
||||
|
@ -807,7 +807,7 @@ def previous_nth_usable(value, offset):
|
|||
return False
|
||||
|
||||
if type(offset) != int:
|
||||
raise errors.AnsibleFilterError('Must pass in an interger')
|
||||
raise errors.AnsibleFilterError('Must pass in an integer')
|
||||
if v.size > 1:
|
||||
first_usable, last_usable = _first_last(v)
|
||||
nth_ip = int(netaddr.IPAddress(int(v.ip) - offset))
|
||||
|
|
Loading…
Reference in a new issue