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 #79 Tasks not caught by cv_task from cv_device #80

Merged
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
8 changes: 4 additions & 4 deletions ansible_collections/arista/cvp/plugins/modules/cv_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@ def device_action(module):
sleep(10)
# Build required data for tasks in CVP - work order Id, current task status, name
# description
tasksField = {'name': 'name', 'workOrderId': 'taskNo', 'workOrderState': 'status',
'currentTaskName': 'currentAction', 'description': 'description',
'workOrderUserDefinedStatus': 'displayedStutus', 'note': 'note',
'taskStatus': 'actionStatus'}
tasksField = {'workOrderId': 'workOrderId', 'workOrderState': 'workOrderState',
'currentTaskName': 'currentTaskName', 'description': 'description',
'workOrderUserDefinedStatus': 'workOrderUserDefinedStatus', 'note': 'note',
'taskStatus': 'taskStatus', 'workOrderDetails': 'workOrderDetails'}
tasks = module.client.api.get_tasks_by_status('Pending')
# if tasks IDs were created for device actions then return only those.
createdTasks = []
Expand Down