mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
added versions to dep notices (#24019)
* added versions to dep notices * pep7 * string
This commit is contained in:
parent
6845234d72
commit
31045d58c6
8 changed files with 13 additions and 10 deletions
|
@ -207,7 +207,7 @@ class RoleDefinition(Base, Become, Conditional, Taggable):
|
|||
if key in ('connection', 'port', 'remote_user'):
|
||||
display.deprecated("Using '%s' as a role param has been deprecated. " % key + \
|
||||
"In the future, these values should be entered in the `vars:` " + \
|
||||
"section for roles, but for now we'll store it as both a param and an attribute.")
|
||||
"section for roles, but for now we'll store it as both a param and an attribute.", version="2.7")
|
||||
role_def[key] = value
|
||||
# this key does not match a field attribute, so it must be a role param
|
||||
role_params[key] = value
|
||||
|
|
|
@ -83,7 +83,8 @@ class RoleRequirement(RoleDefinition):
|
|||
# 'version': 'v1.0',
|
||||
# 'name': 'repo'
|
||||
# }
|
||||
display.deprecated("The comma separated role spec format, use the yaml/explicit format instead. Line that trigger this: %s" % role_spec)
|
||||
display.deprecated("The comma separated role spec format, use the yaml/explicit format instead. Line that trigger this: %s" % role_spec,
|
||||
version="2.7")
|
||||
|
||||
default_role_versions = dict(git='master', hg='tip')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue