Skip to content

Commit

Permalink
fix resource-stickiness in man page and help
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjelinek committed Mar 21, 2022
1 parent fb86000 commit d881674
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pcs/pcs.8.in
Expand Up @@ -290,7 +290,7 @@ NOTE: Defaults do not apply to resources / stonith devices which override them w
meta <resource id | group id | clone id> <meta options> [\fB\-\-wait\fR[=n]]
Add specified options to the specified resource, group or clone. Meta options should be in the format of name=value, options may be removed by setting an option without a value. If \fB\-\-wait\fR is specified, pcs will wait up to 'n' seconds for the changes to take effect and then return 0 if the changes have been processed or 1 otherwise. If 'n' is not specified it defaults to 60 minutes.
.br
Example: pcs resource meta TestResource failure\-timeout=50 stickiness=
Example: pcs resource meta TestResource failure\-timeout=50 resource\-stickiness=
.TP
group list
Show all currently configured resource groups and their resources.
Expand Down Expand Up @@ -809,7 +809,7 @@ NOTE: Defaults do not apply to resources / stonith devices which override them w
meta <stonith id> <meta options> [\fB\-\-wait\fR[=n]]
Add specified options to the specified stonith device. Meta options should be in the format of name=value, options may be removed by setting an option without a value. If \fB\-\-wait\fR is specified, pcs will wait up to 'n' seconds for the changes to take effect and then return 0 if the changes have been processed or 1 otherwise. If 'n' is not specified it defaults to 60 minutes.

Example: pcs stonith meta test_stonith failure\-timeout=50 stickiness=
Example: pcs stonith meta test_stonith failure\-timeout=50 resource\-stickiness=
.TP
defaults [config] [\fB\-\-all\fR] [\fB\-\-full\fR] [\fB\-\-no\-check\-expired\fR]
This command is an alias of 'resource defaults [config]' command.
Expand Down
5 changes: 3 additions & 2 deletions pcs/usage.py
Expand Up @@ -550,9 +550,10 @@ def _resource_meta_desc_fn(obj: str, parent_cmd: str) -> Iterable[str]:
have been processed or 1 otherwise. If 'n' is not specified it defaults
to 60 minutes.
""",
"Example:",
f"""
Example: pcs {parent_cmd} {_RESOURCE_META_CMD} test_{parent_cmd}
failure-timeout=50 stickiness=
pcs {parent_cmd} {_RESOURCE_META_CMD} test_{parent_cmd}
failure-timeout=50 resource-stickiness=
""",
)

Expand Down

0 comments on commit d881674

Please sign in to comment.