-
Notifications
You must be signed in to change notification settings - Fork 194
Closed
Labels
Description
Cannot create tickets with --body param, this happens when the slcli uses the REST endpoint.
It seems the contents in the code below needs to be removed since this property isn't in the datatype https://sldn.softlayer.com/reference/datatypes/SoftLayer_Ticket/
softlayer-python/SoftLayer/managers/ticket.py
Lines 69 to 74 in 0738549
| new_ticket = { | |
| 'subjectId': subject, | |
| 'contents': body, | |
| 'assignedUserId': current_user['id'], | |
| 'title': title, | |
| } |
Actual Behavior
$ slcli ticket create --title "Test::SLCI" --subject-id 1001 --body "Example"
SoftLayerAPIError(500): The property 'contents' is not valid for 'SoftLayer_Ticket'.
Environment Information
OS information: ubuntu 18.04, windows 10
softlayer-python version (slcli --version): 5.7.1, 5.7.2
end-point: REST