Skip to content

Commit e3a1337

Browse files
fixing a few documentation warnings
1 parent 48306c4 commit e3a1337

6 files changed

Lines changed: 21 additions & 20 deletions

File tree

SoftLayer/CLI/block/refresh.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
@click.argument('snapshot_id')
1212
@environment.pass_env
1313
def cli(env, volume_id, snapshot_id):
14-
"""Refresh a duplicate volume with a snapshot from its parent."""
14+
"""Refresh a duplicate volume with a snapshot from its parent.
15+
16+
17+
"""
1518
block_manager = SoftLayer.BlockStorageManager(env.client)
1619
resp = block_manager.refresh_dupe(volume_id, snapshot_id)
1720

SoftLayer/CLI/ticket/create.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,18 @@
2525
def cli(env, title, subject_id, body, hardware_identifier, virtual_identifier, priority):
2626
"""Create a Infrastructure support ticket.
2727
28-
Example::
29-
30-
Will create the ticket with `Some text`.
28+
Will create the ticket with `Some text`.::
3129
3230
slcli ticket create --body="Some text" --subject-id 1522 --hardware 12345 --title "My New Ticket"
3331
34-
Will create the ticket with text from STDIN
32+
Will create the ticket with text from STDIN::
3533
3634
cat sometfile.txt | slcli ticket create --subject-id 1003 --virtual 111111 --title "Reboot Me"
3735
38-
Will open the default text editor, and once closed, use that text to create the ticket
36+
Will open the default text editor, and once closed, use that text to create the ticket::
3937
4038
slcli ticket create --subject-id 1482 --title "Vyatta Questions..."
39+
4140
"""
4241
ticket_mgr = SoftLayer.TicketManager(env.client)
4342
if body is None:

SoftLayer/CLI/ticket/update.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,15 @@
1616
def cli(env, identifier, body):
1717
"""Adds an update to an existing ticket.
1818
19-
Example::
20-
21-
Will update the ticket with `Some text`.
19+
Will update the ticket with `Some text`.::
2220
2321
slcli ticket update 123456 --body="Some text"
2422
25-
Will update the ticket with text from STDIN
23+
Will update the ticket with text from STDIN::
2624
2725
cat sometfile.txt | slcli ticket update 123456
2826
29-
Will open the default text editor, and once closed, use that text to update the ticket
27+
Will open the default text editor, and once closed, use that text to update the ticket::
3028
3129
slcli ticket update 123456
3230
"""

docs/cli/block.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ Block Commands
112112
:show-nested:
113113

114114
.. click:: SoftLayer.CLI.block.refresh:cli
115-
:prog block volume-refresh
115+
:prog: block volume-refresh
116116
:show-nested:
117117

118118
.. click:: SoftLayer.CLI.block.convert:cli
119-
:prog block volume-convert
119+
:prog: block volume-convert
120120
:show-nested:
121121

122122
.. click:: SoftLayer.CLI.block.subnets.list:cli

docs/cli/file.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ File Commands
100100
:show-nested:
101101

102102
.. click:: SoftLayer.CLI.file.refresh:cli
103-
:prog file volume-refresh
103+
:prog: file volume-refresh
104104
:show-nested:
105105

106106
.. click:: SoftLayer.CLI.file.convert:cli
107-
:prog file volume-convert
107+
:prog: file volume-convert
108108
:show-nested:
109109

110110
.. click:: SoftLayer.CLI.file.snapshot.schedule_list:cli

docs/cli/tickets.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
.. _cli_tickets:
22

33
Support Tickets
4-
===============
4+
=================
55

6-
The SoftLayer ticket API is used to create "classic" or Infrastructure Support cases.
7-
These tickets will still show up in your web portal, but for the more unified case management API,
8-
see the `Case Management API <https://cloud.ibm.com/apidocs/case-management#introduction>`_
6+
The SoftLayer ticket API is used to create "classic" or Infrastructure Support cases. These tickets will still show up in your web portal, but for the more unified case management API, see the `Case Management API <https://cloud.ibm.com/apidocs/case-management#introduction>`_
7+
8+
.. note::
9+
10+
Windows Git-Bash users might run into issues with `ticket create` and `ticket update` if --body isn't used, as it doesn't report that it is a real TTY to python, so the default editor can not be launched.
911

10-
.. note:: Windows Git-Bash users might run into issues with `ticket create` and `ticket update` if --body isn't used, as it doesn't report that it is a real TTY to python, so the default editor can not be launched.
1112

1213
.. click:: SoftLayer.CLI.ticket.create:cli
1314
:prog: ticket create

0 commit comments

Comments
 (0)