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'] 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 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 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 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"