Skip to content

Commit 72ce028

Browse files
#1034 added pagination to ticket searches. Added IDs to package list results
1 parent 5e38395 commit 72ce028

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

SoftLayer/CLI/order/package_list.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
from SoftLayer.CLI import formatting
88
from SoftLayer.managers import ordering
99

10-
COLUMNS = ['name',
10+
COLUMNS = ['id',
11+
'name',
1112
'keyName',
1213
'type']
1314

@@ -51,6 +52,7 @@ def cli(env, keyword, package_type):
5152

5253
for package in packages:
5354
table.add_row([
55+
package['id'],
5456
package['name'],
5557
package['keyName'],
5658
package['type']['keyName']

SoftLayer/managers/ticket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def list_tickets(self, open_status=True, closed_status=True):
4040
else:
4141
raise ValueError("open_status and closed_status cannot both be False")
4242

43-
return self.client.call('Account', call, mask=mask)
43+
return self.client.call('Account', call, mask=mask, iter=True)
4444

4545
def list_subjects(self):
4646
"""List all ticket subjects."""

0 commit comments

Comments
 (0)