mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 09:18:48 -03:30
Merge pull request #7934 from ryanpetrello/deprecate-mercurial
add a deprecation warning for mercurial project syncs Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
This is a list of high-level changes for each release of AWX. A full list of commits can be found at `https://github.com/ansible/awx/releases/tag/<version>`.
|
This is a list of high-level changes for each release of AWX. A full list of commits can be found at `https://github.com/ansible/awx/releases/tag/<version>`.
|
||||||
|
|
||||||
## 14.1.0 (TBD)
|
## 14.1.0 (TBD)
|
||||||
|
- Deprecated official support for Mercurial-based project updates - https://github.com/ansible/awx/issues/7932
|
||||||
- Added the ability to import YAML-based resources (instead of just JSON) when using the AWX CLI - https://github.com/ansible/awx/pull/7808
|
- Added the ability to import YAML-based resources (instead of just JSON) when using the AWX CLI - https://github.com/ansible/awx/pull/7808
|
||||||
- Updated the AWX CLI to export labels associated with Workflow Job Templates - https://github.com/ansible/awx/pull/7847
|
- Updated the AWX CLI to export labels associated with Workflow Job Templates - https://github.com/ansible/awx/pull/7847
|
||||||
- Updated to the latest python-ldap to address a bug - https://github.com/ansible/awx/issues/7868
|
- Updated to the latest python-ldap to address a bug - https://github.com/ansible/awx/issues/7868
|
||||||
|
|||||||
15
awx/playbooks/action_plugins/hg_deprecation.py
Normal file
15
awx/playbooks/action_plugins/hg_deprecation.py
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
|
from ansible.plugins.action import ActionBase
|
||||||
|
|
||||||
|
|
||||||
|
class ActionModule(ActionBase):
|
||||||
|
|
||||||
|
def run(self, tmp=None, task_vars=None):
|
||||||
|
self._supports_check_mode = False
|
||||||
|
result = super(ActionModule, self).run(tmp, task_vars)
|
||||||
|
result['changed'] = result['failed'] = False
|
||||||
|
result['msg'] = ''
|
||||||
|
self._display.deprecated("Mercurial support is deprecated")
|
||||||
|
return result
|
||||||
@@ -1,4 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
- name: Mercurial support is deprecated.
|
||||||
|
hg_deprecation:
|
||||||
|
|
||||||
- name: update project using hg
|
- name: update project using hg
|
||||||
hg:
|
hg:
|
||||||
dest: "{{project_path|quote}}"
|
dest: "{{project_path|quote}}"
|
||||||
|
|||||||
Reference in New Issue
Block a user