Skip to content

Commit 312e538

Browse files
committed
Adding fix for issue and validation
1 parent 5439d63 commit 312e538

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SoftLayer/managers/ticket.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
66
:license: MIT, see LICENSE for more details.
77
"""
8-
98
from SoftLayer import utils
109

1110

@@ -38,6 +37,8 @@ def list_tickets(self, open_status=True, closed_status=True):
3837
call = 'getOpenTickets'
3938
elif closed_status:
4039
call = 'getClosedTickets'
40+
else:
41+
raise ValueError("open_status and closed_status cannot both be False")
4142

4243
return self.client.call('Account', call, mask=mask)
4344

0 commit comments

Comments
 (0)