mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
added deprecation warning to comma separated role spec
This commit is contained in:
parent
9886829e40
commit
54e821ca94
1 changed files with 9 additions and 0 deletions
|
@ -40,6 +40,13 @@ VALID_SPEC_KEYS = [
|
|||
'version',
|
||||
]
|
||||
|
||||
try:
|
||||
from __main__ import display
|
||||
display = display
|
||||
except ImportError:
|
||||
from ansible.utils.display import Display
|
||||
display = Display()
|
||||
|
||||
class RoleRequirement(RoleDefinition):
|
||||
|
||||
"""
|
||||
|
@ -77,6 +84,8 @@ class RoleRequirement(RoleDefinition):
|
|||
# 'name': 'repo'
|
||||
# }
|
||||
|
||||
display.deprecated("The comma separated role spec format, use the yaml/explicit format instead.")
|
||||
|
||||
default_role_versions = dict(git='master', hg='tip')
|
||||
|
||||
role_spec = role_spec.strip()
|
||||
|
|
Loading…
Reference in a new issue