Skip to content

Commit

Permalink
Restrict node_state and node_type choices
Browse files Browse the repository at this point in the history
Signed-off-by: Rick Elrod <rick@elrod.me>
  • Loading branch information
relrod authored and jbradberry committed Sep 23, 2022
1 parent 7d645c8 commit ba26909
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions awx_collection/plugins/modules/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,16 @@
description:
- Role that this node plays in the mesh.
choices:
- control
- execution
- hybrid
- hop
required: False
type: str
default: execution
node_state:
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
Expand Down Expand Up @@ -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'),
)

Expand Down

0 comments on commit ba26909

Please sign in to comment.