From ba26909dc5e328ae1a80d52c054498a01c303c77 Mon Sep 17 00:00:00 2001 From: Rick Elrod Date: Tue, 20 Sep 2022 12:39:32 -0500 Subject: [PATCH] Restrict node_state and node_type choices Signed-off-by: Rick Elrod --- awx_collection/plugins/modules/instance.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/awx_collection/plugins/modules/instance.py b/awx_collection/plugins/modules/instance.py index a20b6c831c..e8a7866eaa 100644 --- a/awx_collection/plugins/modules/instance.py +++ b/awx_collection/plugins/modules/instance.py @@ -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'), )