mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 11:27:36 -02:30
Restrict node_state and node_type choices
Signed-off-by: Rick Elrod <rick@elrod.me>
This commit is contained in:
committed by
Jeff Bradberry
parent
7d645c8ff6
commit
ba26909dc5
@@ -48,10 +48,7 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Role that this node plays in the mesh.
|
- Role that this node plays in the mesh.
|
||||||
choices:
|
choices:
|
||||||
- control
|
|
||||||
- execution
|
- execution
|
||||||
- hybrid
|
|
||||||
- hop
|
|
||||||
required: False
|
required: False
|
||||||
type: str
|
type: str
|
||||||
default: execution
|
default: execution
|
||||||
@@ -59,13 +56,8 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Indicates the current life cycle stage of this instance.
|
- Indicates the current life cycle stage of this instance.
|
||||||
choices:
|
choices:
|
||||||
- provisioning
|
|
||||||
- provision-fail
|
|
||||||
- installed
|
|
||||||
- ready
|
|
||||||
- unavailable
|
|
||||||
- deprovisioning
|
- deprovisioning
|
||||||
- deprovision-fail
|
- installed
|
||||||
required: False
|
required: False
|
||||||
default: installed
|
default: installed
|
||||||
type: str
|
type: str
|
||||||
@@ -101,8 +93,8 @@ def main():
|
|||||||
capacity_adjustment=dict(type='float'),
|
capacity_adjustment=dict(type='float'),
|
||||||
enabled=dict(type='bool'),
|
enabled=dict(type='bool'),
|
||||||
managed_by_policy=dict(type='bool'),
|
managed_by_policy=dict(type='bool'),
|
||||||
node_type=dict(type='str', choices=['control', 'execution', 'hybrid', 'hop']),
|
node_type=dict(type='str', choices=['execution']),
|
||||||
node_state=dict(type='str', choices=['provisioning', 'provision-fail', 'installed', 'ready', 'unavailable', 'deprovisioning', 'deprovision-fail']),
|
node_state=dict(type='str', choices=['deprovisioning', 'installed']),
|
||||||
listener_port=dict(type='int'),
|
listener_port=dict(type='int'),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user