Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix disagreement in cmlModule module spec and init #39

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/module_utils/cml_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/cml_lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/cml_lab_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/cml_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/cml_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down