From 30a2a1f1ff08f1b67056c20f690eb894b1205cad Mon Sep 17 00:00:00 2001 From: netgirard <76009256+netgirard@users.noreply.github.com> Date: Fri, 25 Oct 2024 12:15:45 -0400 Subject: [PATCH 1/5] Update cml_utils.py --- plugins/module_utils/cml_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/module_utils/cml_utils.py b/plugins/module_utils/cml_utils.py index 816a0c2..95210e5 100644 --- a/plugins/module_utils/cml_utils.py +++ b/plugins/module_utils/cml_utils.py @@ -39,7 +39,7 @@ def __init__(self, module, function=None): self.status = None self.url = None self.params['force_basic_auth'] = True - self.user = self.params['user'] + self.user = self.params['username'] self.password = self.params['password'] self.host = self.params['host'] self.timeout = self.params['timeout'] From c2f2d23bf96d0c9ed9342f2b9f8694f450b08646 Mon Sep 17 00:00:00 2001 From: netgirard <76009256+netgirard@users.noreply.github.com> Date: Fri, 25 Oct 2024 12:21:38 -0400 Subject: [PATCH 2/5] Update cml_lab.py --- plugins/modules/cml_lab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/cml_lab.py b/plugins/modules/cml_lab.py index edf8d95..0088df5 100644 --- a/plugins/modules/cml_lab.py +++ b/plugins/modules/cml_lab.py @@ -92,7 +92,7 @@ - name: Create the lab cisco.cml.cml_lab: host: "{{ cml_host }}" - user: "{{ cml_username }}" + username: "{{ cml_username }}" password: "{{ cml_password }}" lab: "{{ cml_lab }}" state: present From b0d2be30c2d13d2f3a655fc21b52eefcedfa1d0a Mon Sep 17 00:00:00 2001 From: netgirard <76009256+netgirard@users.noreply.github.com> Date: Fri, 25 Oct 2024 12:22:00 -0400 Subject: [PATCH 3/5] Update cml_lab_facts.py --- plugins/modules/cml_lab_facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/cml_lab_facts.py b/plugins/modules/cml_lab_facts.py index 6cd7c61..06d1d66 100644 --- a/plugins/modules/cml_lab_facts.py +++ b/plugins/modules/cml_lab_facts.py @@ -52,7 +52,7 @@ - name: Get facts about a lab in CML cisco.cml.cml_lab_facts: host: "{{ cml_host }}" - user: "{{ cml_username }}" + username: "{{ cml_username }}" password: "{{ cml_password }}" lab: "{{ cml_lab }}" register: results From 3320b0447f069d2b8d224ba3b84563cb07d8d1c8 Mon Sep 17 00:00:00 2001 From: netgirard <76009256+netgirard@users.noreply.github.com> Date: Fri, 25 Oct 2024 12:22:29 -0400 Subject: [PATCH 4/5] Update cml_node.py --- plugins/modules/cml_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/cml_node.py b/plugins/modules/cml_node.py index da86e04..2b4508c 100644 --- a/plugins/modules/cml_node.py +++ b/plugins/modules/cml_node.py @@ -106,7 +106,7 @@ cisco.cml.cml_node: name: "{{ inventory_hostname }}" host: "{{ cml_host }}" - user: "{{ cml_username }}" + username: "{{ cml_username }}" password: "{{ cml_password }}" lab: "{{ cml_lab }}" state: started From f850f3117b76209b0cdc4efee64e12bebfa8e763 Mon Sep 17 00:00:00 2001 From: netgirard <76009256+netgirard@users.noreply.github.com> Date: Fri, 25 Oct 2024 12:22:51 -0400 Subject: [PATCH 5/5] Update cml_users.py --- plugins/modules/cml_users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/modules/cml_users.py b/plugins/modules/cml_users.py index e655e84..a8218f9 100644 --- a/plugins/modules/cml_users.py +++ b/plugins/modules/cml_users.py @@ -84,7 +84,7 @@ - name: Add users to the CML instance cisco.cml.cml_users: host: "{{ cml_host }}" - user: "{{ cml_username }}" + username: "{{ cml_username }}" password: "{{ cml_password }}" name: "first_user" user_pass: "password" @@ -94,7 +94,7 @@ - name: Remove users from the CML instance cisco.cml.cml_users: host: "{{ cml_host }}" - user: "{{ cml_username }}" + username: "{{ cml_username }}" password: "{{ cml_password }}" name: "old_user" state: "absent"