mirror of https://github.com/ansible/ansible.git
Introduce Delegatable and Notifiable mixin classes (#80077)
* Introduce Delegatable and Notifiable mixin classes * fix sanity * fix sanitypull/80080/head
parent
43aa47c2af
commit
3fd0e12571
@ -0,0 +1,2 @@
|
||||
minor_changes:
|
||||
- Introduce ``Delegatable`` and ``Notifiable`` mixin classes for playbook objects
|
@ -0,0 +1,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright The Ansible project
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
|
||||
from ansible.playbook.attribute import FieldAttribute
|
||||
|
||||
|
||||
class Delegatable:
|
||||
delegate_to = FieldAttribute(isa='string')
|
||||
delegate_facts = FieldAttribute(isa='bool')
|
@ -0,0 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright The Ansible project
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
|
||||
from ansible.playbook.attribute import FieldAttribute
|
||||
|
||||
|
||||
class Notifiable:
|
||||
notify = FieldAttribute(isa='list')
|
Loading…
Reference in New Issue