mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
changed deprecation to removal warning
This commit is contained in:
parent
61dc4a7e67
commit
64864829c4
1 changed files with 1 additions and 1 deletions
|
@ -388,7 +388,7 @@ class Inventory(object):
|
||||||
end = -1
|
end = -1
|
||||||
subscript = (int(start), int(end))
|
subscript = (int(start), int(end))
|
||||||
if sep == '-':
|
if sep == '-':
|
||||||
display.deprecated("Use [x:y] inclusive subscripts instead of [x-y]", version=2.0, removed=True)
|
display.warning("Use [x:y] inclusive subscripts instead of [x-y] which has been removed")
|
||||||
|
|
||||||
return (pattern, subscript)
|
return (pattern, subscript)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue