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