Skip to content

Commit 93b7ef8

Browse files
author
Brian Flores
committed
updated object filter
1 parent 141a331 commit 93b7ef8

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

SoftLayer/managers/account.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,15 @@ def get_account_billing_items(self, create=None, category=None, mask=None):
222222
"cancellationDate": {
223223
"operation": "is null"
224224
},
225-
"createDate": utils.query_filter_orderby()
225+
"id": {
226+
"operation": "orderBy",
227+
"options": [
228+
{
229+
"name": "sort",
230+
"value": ["ASC"]
231+
}
232+
]
233+
}
226234
}
227235
}
228236

@@ -231,7 +239,7 @@ def get_account_billing_items(self, create=None, category=None, mask=None):
231239
{"allTopLevelBillingItems": {"categoryCode": {"operation": category}}})
232240
if create:
233241
object_filter = utils.dict_merge(object_filter,
234-
{"allTopLevelBillingItems": {"createDate": {"operation": create}}})
242+
{"allTopLevelBillingItems": {"createDate": {"operation": "*=" + create}}})
235243

236244
return self.client.call('Account', 'getAllTopLevelBillingItems',
237245
mask=mask, filter=object_filter, iter=True, limit=100)

0 commit comments

Comments
 (0)