Skip to content

Commit c02ad53

Browse files
committed
Removes un-needed mask[] from docs
1 parent b47abf7 commit c02ad53

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

SoftLayer/transports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def make_xml_rpc_api_call(uri, method, args=None, headers=None,
3838
allow_none=True)
3939
session = requests.Session()
4040
req = requests.Request('POST', uri, data=payload,
41-
headers=http_headers).prepare()
41+
headers=http_headers).prepare()
4242
log.debug("=== REQUEST ===")
4343
log.info('POST %s', uri)
4444
log.debug(req.headers)

docs/api/client.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Retreive a ticket using Object Masks.
8484
::
8585

8686
ticket = client['Ticket'].getObject(
87-
id=123456, mask="mask[updates, assignedUser, attachedHardware.datacenter]")
87+
id=123456, mask="updates, assignedUser, attachedHardware.datacenter")
8888

8989

9090
Now add an update to the ticket with `Ticket.addUpdate <http://sldn.softlayer.com/reference/services/SoftLayer_Ticket/addUpdate>`_. This uses a parameter, which translate to positional arguments in the order that they appear in the API docs.
@@ -172,7 +172,7 @@ As of 3.0, the old API methods and parameters no longer work. Below are examples
172172
# New
173173
import SoftLayer
174174
client = SoftLayer.Client(username='username', api_key='api_key')
175-
client['Account'].getObject(mask="mask[ipAddresses]", limit=10, offset=0)
175+
client['Account'].getObject(mask="ipAddresses", limit=10, offset=0)
176176

177177
**Importing the module**
178178
::
@@ -215,7 +215,7 @@ As of 3.0, the old API methods and parameters no longer work. Below are examples
215215
client.set_object_mask({'ipAddresses' : None})
216216

217217
# New
218-
client['Account'].getObject(mask="mask[ipAddresses]")
218+
client['Account'].getObject(mask="ipAddresses")
219219

220220
**Using Init Parameter**
221221
::

0 commit comments

Comments
 (0)