Skip to content

Commit f571572

Browse files
updated docblock for call-api
1 parent 922d486 commit f571572

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

SoftLayer/CLI/call_api.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@ def _validate_parameters(ctx, param, value): # pylint: disable=unused-argument
115115
@click.option('--output-python / --no-output-python',
116116
help="Show python example code instead of executing the call")
117117
@click.option('--json-filter', callback=_validate_filter,
118-
help="A JSON string to be passed in as the object filter to the API call."
119-
"Remember to use double quotes (\") for variable names. Can NOT be used with --filter.")
118+
help="A JSON string to be passed in as the object filter to the API call. "
119+
"Remember to use double quotes (\") for variable names. Can NOT be used with --filter. "
120+
"Dont use whitespace outside of strings, or the slcli might have trouble parsing it.")
120121
@environment.pass_env
121122
def cli(env, service, method, parameters, _id, _filters, mask, limit, offset,
122123
output_python=False, json_filter=None):
@@ -137,7 +138,7 @@ def cli(env, service, method, parameters, _id, _filters, mask, limit, offset,
137138
slcli call-api Account getVirtualGuests \\
138139
-f 'virtualGuests.datacenter.name IN dal05,sng01'
139140
slcli call-api Account getVirtualGuests \\
140-
--json-filter '{"virtualGuests":{"hostname": {"operation": "^= test"}}}' --limit=10
141+
--json-filter '{"virtualGuests":{"hostname":{"operation":"^= test"}}}' --limit=10
141142
slcli -v call-api SoftLayer_User_Customer addBulkPortalPermission --id=1234567 \\
142143
'[{"keyName": "NETWORK_MESSAGE_DELIVERY_MANAGE"}]'
143144
"""

0 commit comments

Comments
 (0)