Skip to content

Commit b1a7ebc

Browse files
authored
Merge pull request #76 from stewartfrancis/doc-updates
Fix broken links on hub
2 parents 47ada56 + fc8aca9 commit b1a7ebc

File tree

12 files changed

+51
-64
lines changed

12 files changed

+51
-64
lines changed

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pytest-xdist==1.34.0 # Need this to work around a problem running ansible-test
99
pytest==4.6.11; python_version < '3'
1010
pytest==6.2.1; python_version >= '3'
1111
# Non-test requirements (python 3+ only)
12-
pylint==2.6.0; python_version >= '3'
12+
pylint==2.5.3; python_version >= '3'
1313
shellcheck-py==0.7.1.1; python_version >= '3'
1414
rstcheck==3.3.1; python_version >= '3'
1515
yamllint==1.25.0; python_version >= '3'

docs/source/release_notes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Releases
88
========
99

10-
Version 1.0.0
10+
Version 1.0.1
1111
=============
1212

1313
What's New

docs/source/requirements_managed.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ The requirements of the managed node are as follows:
2121

2222
* `requests`_
2323
* `xmltodict`_
24+
* `typing`_ (For python versions < 3.5)
2425

2526
If you delegate the tasks to run on your localhost, the Python module dependencies
2627
need to be installed on your localhost instead.
@@ -40,6 +41,9 @@ The requirements of the managed node are as follows:
4041
.. _xmltodict:
4142
https://pypi.org/project/xmltodict/
4243

44+
.. _typing:
45+
https://pypi.org/project/typing/
46+
4347
.. _CICS sample playbook:
4448
https://github.com/IBM/z_ansible_collections_samples/tree/master/cics/cmci/reporting
4549

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace: ibm
55
name: ibm_zos_cics
66

77
# The collection version
8-
version: 1.0.0
8+
version: 1.0.1
99

1010
# Collection README file
1111
readme: README.md

plugins/doc_fragments/cmci.py

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ class ModuleDocFragment(object):
7272
C(PLEX1). To determine whether a CMAS can be specified as I(context),
7373
see the B(CMAS context) entry in the CICSPlex SM resource table
7474
reference of a resource. For example, according to the
75-
L(PROGRAM resource table,
76-
https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGRAMtab.html),
75+
L(PROGRAM resource table,https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGRAMtab.html),
7776
CMAS context is not supported for PROGRAM.
7877
- If CMCI is installed in a single region (SMSS), I(context) is the
7978
APPLID of the CICS region associate with the request.
@@ -96,8 +95,8 @@ class ModuleDocFragment(object):
9695
description:
9796
- The CMCI external resource name that maps to the target CICS or CICSPlex
9897
SM resource type.
99-
For a list of CMCI external resource names, see L(CMCI resource names,
100-
https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_resources.html).
98+
For a list of CMCI external resource names, see
99+
L(CMCI resource names,https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_resources.html).
101100
type: str
102101
required: true
103102
scheme:
@@ -139,13 +138,12 @@ class ModuleDocFragment(object):
139138
- To use more complicated filter expressions, including a range of
140139
different filter operators, and the ability to compose filters with
141140
C(and) and C(or) operators, see the C(complex_filter) parameter.
142-
- For examples, see "Examples" in M(cmci_get).
143-
- For more details, see L(How to build a filter expression,
144-
https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/system-programming/cpsm/eyup1a0.html).
141+
- For more details, see
142+
L(How to build a filter expression,https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/system-programming/cpsm/eyup1a0.html).
143+
- For examples, see M(cmci_get)
145144
- For supported attributes of different resource types, see their
146145
resource table reference, for example,
147-
L(PROGDEF resource table reference,
148-
https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGDEFtab.html).
146+
L(PROGDEF resource table reference,https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGDEFtab.html).
149147
type: dict
150148
required: false
151149
complex_filter:
@@ -192,9 +190,8 @@ class ModuleDocFragment(object):
192190
description:
193191
- The name of a resource table attribute on which to filter.
194192
- For supported attributes of different resource types, see their
195-
resource table reference, for example, L(PROGDEF resource table
196-
reference,
197-
https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGDEFtab.html).
193+
resource table reference, for example,
194+
L(PROGDEF resource table reference, https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGDEFtab.html).
198195
type: str
199196
required: false
200197
operator:
@@ -227,8 +224,7 @@ class ModuleDocFragment(object):
227224
- The value by which you are to filter the resource attributes.
228225
- The value must be a valid one for the resource table attribute
229226
as documented in the resource table reference, for example,
230-
L(PROGDEF resource table reference,
231-
https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGDEFtab.html).
227+
L(PROGDEF resource table reference,https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGDEFtab.html).
232228
type: str
233229
required: false
234230
get_parameters:
@@ -239,8 +235,8 @@ class ModuleDocFragment(object):
239235
the target resource type, as valid parameters for the GET operation in
240236
the "Valid CPSM operations" table. For example, the valid parameters
241237
for identifying a PROGDEF resource are CICSSYS, CSDGROUP and RESGROUP,
242-
as found in the L(PROGDEF resource table reference,
243-
https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGDEFtab.html).
238+
as found in the
239+
L(PROGDEF resource table reference,https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGDEFtab.html).
244240
type: list
245241
elements: dict
246242
suboptions:
@@ -261,8 +257,8 @@ class ModuleDocFragment(object):
261257
description:
262258
- The resource attributes to be created or updated. Available attributes
263259
can be found in the CICSPlex® SM resource table reference for the
264-
target resource type, for example, L(PROGDEF resource table reference,
265-
https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGDEFtab.html).
260+
target resource type, for example,
261+
L(PROGDEF resource table reference,https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGDEFtab.html).
266262
type: dict
267263
required: false
268264
'''

plugins/modules/cmci_action.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
- Perform actions on CICS® or CICSPlex® SM definitions and resources, by
1616
initiating PUT requests via the CMCI REST API. The CMCI REST API can be
1717
configured in CICSPlex SM or stand-alone regions (SMSS). For information
18-
about the API, see L(CMCI REST API,
19-
https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_overview.html).
20-
For information about how to compose PUT requests, see L(CMCI PUT requests,
21-
https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_put.html).
18+
about the API, see
19+
L(CMCI REST API,https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_overview.html).
20+
For information about how to compose PUT requests, see
21+
L(CMCI PUT requests,https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_put.html).
2222
author:
2323
- Stewart Francis (@stewartfrancis)
2424
- Tom Latham (@Tom-Latham)
@@ -32,8 +32,8 @@
3232
description: >
3333
The name of the target action. To find the name of the appropriate action,
3434
consult the CICSPlex SM resource tables for the target resource type. For
35-
example, the L(PROGRAM resource table reference,
36-
https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGRAMtab.html)
35+
example, the
36+
L(PROGRAM resource table reference,https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGRAMtab.html)
3737
lists the eligible actions for CICS programs.
3838
type: str
3939
required: true
@@ -45,8 +45,7 @@
4545
listed in the PERFORM SET operation section of the "Valid CPSM operations"
4646
table. For example, the valid parameters for a PROGDEF CSDCOPY action are
4747
C(AS_RESOURCE), C(DUPACTION) and C(TO_CSDGROUP), as found in the
48-
L(PROGDEF resource table reference,
49-
https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGDEFtab.html).
48+
L(PROGDEF resource table reference,https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGDEFtab.html).
5049
type: list
5150
elements: dict
5251
suboptions:
@@ -262,11 +261,9 @@
262261

263262
class AnsibleCMCIInstallModule(AnsibleCMCIModule):
264263
def __init__(self):
265-
# pylint: disable=super-with-arguments
266264
super(AnsibleCMCIInstallModule, self).__init__('PUT')
267265

268266
def init_argument_spec(self): # type: () -> Dict
269-
# pylint: disable=super-with-arguments
270267
argument_spec = super(AnsibleCMCIInstallModule, self)\
271268
.init_argument_spec()
272269
argument_spec.update({

plugins/modules/cmci_create.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@
1515
- Create definitional CICS® or CICSPlex® SM resources in CSD and BAS
1616
repositories, by initiating POST requests via the CMCI REST API. The CMCI
1717
REST API can be configured in CICSPlex SM or stand-alone regions (SMSS). For
18-
information about the API, see L(CMCI REST API,
19-
https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_overview.html).
18+
information about the API, see
19+
L(CMCI REST API,https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_overview.html).
2020
For information about how to compose POST requests, see
21-
L(CMCI POST requests,
22-
https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_post.html).
21+
L(CMCI POST requests,https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_post.html).
2322
author:
2423
- Stewart Francis (@stewartfrancis)
2524
- Tom Latham (@Tom-Latham)
@@ -36,8 +35,8 @@
3635
table reference for the target resource type, as listed in the CREATE
3736
operation section of the "Valid CPSM operations" table. For example, the
3837
valid parameters for a PROGDEF CREATE operation are CSD and RESGROUP, as
39-
found in the L(PROGDEF resource table reference,
40-
https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGDEFtab.html).
38+
found in the
39+
L(PROGDEF resource table reference,https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGDEFtab.html).
4140
type: list
4241
elements: dict
4342
suboptions:
@@ -229,11 +228,9 @@
229228

230229
class AnsibleCMCICreateModule(AnsibleCMCIModule):
231230
def __init__(self):
232-
# pylint: disable=super-with-arguments
233231
super(AnsibleCMCICreateModule, self).__init__('POST')
234232

235233
def init_argument_spec(self): # type: () -> Dict
236-
# pylint: disable=super-with-arguments
237234
argument_spec = super(AnsibleCMCICreateModule, self)\
238235
.init_argument_spec()
239236
argument_spec.update(parameters_argument(CREATE_PARAMETERS))

plugins/modules/cmci_delete.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@
1515
- Remove or discard definitional or installed CICS® and CICSPlex® SM resources
1616
from CICS regions, by initiating DELETE requests via the CMCI REST API. The
1717
CMCI REST API can be configured in CICSPlex SM or stand-alone regions
18-
(SMSS). For information about the API, see L(CMCI REST API,
19-
https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_overview.html).
20-
For information about how to compose DELETE requests, see L(CMCI DELETE
21-
requests,
22-
https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_delete.html).
18+
(SMSS). For information about the API, see
19+
L(CMCI REST API,https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_overview.html).
20+
For information about how to compose DELETE requests, see
21+
L(CMCI DELETE requests, https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_delete.html).
2322
author:
2423
- Stewart Francis (@stewartfrancis)
2524
- Tom Latham (@Tom-Latham)
@@ -218,11 +217,9 @@
218217

219218
class AnsibleCMCIDeleteModule(AnsibleCMCIModule):
220219
def __init__(self):
221-
# pylint: disable=super-with-arguments
222220
super(AnsibleCMCIDeleteModule, self).__init__('DELETE')
223221

224222
def init_argument_spec(self): # type: () -> Dict
225-
# pylint: disable=super-with-arguments
226223
argument_spec = super(AnsibleCMCIDeleteModule, self)\
227224
.init_argument_spec()
228225
argument_spec.update(RESOURCES_ARGUMENT)

plugins/modules/cmci_get.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
- Get information about installed and definitional CICS® and CICSPlex® SM
1616
resources from CICS regions, by initiating GET requests via the CMCI REST
1717
API. The CMCI REST API can be configured in CICSPlex SM or stand-alone
18-
regions (SMSS). For information about the API, see L(CMCI REST API,
19-
https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_overview.html).
20-
For information about how to compose GET requests, see L(CMCI GET requests,
21-
https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_get.html).
18+
regions (SMSS). For information about the API, see
19+
L(CMCI REST API,https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_overview.html).
20+
For information about how to compose GET requests, see
21+
L(CMCI GET requests,https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_get.html).
2222
author:
2323
- Stewart Francis (@stewartfrancis)
2424
- Tom Latham (@Tom-Latham)
@@ -268,11 +268,9 @@
268268

269269
class AnsibleCMCIGetModule(AnsibleCMCIModule):
270270
def __init__(self):
271-
# pylint: disable=super-with-arguments
272271
super(AnsibleCMCIGetModule, self).__init__('GET')
273272

274273
def init_argument_spec(self): # type: () -> Dict
275-
# pylint: disable=super-with-arguments
276274
argument_spec = super(AnsibleCMCIGetModule, self).init_argument_spec()
277275
argument_spec.update({
278276
_RECORD_COUNT: {
@@ -286,7 +284,6 @@ def init_request_params(self): # type: () -> Optional[Dict[str, str]]
286284
return self.get_resources_request_params()
287285

288286
def init_url(self): # type: () -> str
289-
# pylint: disable=super-with-arguments
290287
url = super(AnsibleCMCIGetModule, self).init_url()
291288

292289
if self._p.get(_RECORD_COUNT):

plugins/modules/cmci_update.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@
1515
- Make changes to CICS® and CICSPlex® SM resources in CICS regions, by
1616
initiating PUT requests via the CMCI REST API. The CMCI REST API can be
1717
configured in CICSPlex SM or stand-alone regions (SMSS). For information
18-
about the API,
19-
see L(CMCI REST API,
20-
https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_overview.html).
21-
For information about how to compose PUT requests, see L(CMCI PUT requests,
22-
https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_put.html).
18+
about the API, see
19+
L(CMCI REST API, https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_overview.html).
20+
For information about how to compose PUT requests, see
21+
L(CMCI PUT requests,https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/reference-system-programming/cmci/clientapi_put.html).
2322
author:
2423
- Stewart Francis (@stewartfrancis)
2524
- Tom Latham (@Tom-Latham)
@@ -37,8 +36,8 @@
3736
table reference for the target resource type, as listed in the UPDATE
3837
operation section of the "Valid CPSM operations" table. For example, the
3938
only valid parameter for a PROGDEF UPDATE operation is CSD, as found in
40-
the L(PROGDEF resource table reference,
41-
https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGDEFtab.html).
39+
the
40+
L(PROGDEF resource table reference,https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.6.0/reference-cpsm-restables/cpsm-restables/PROGDEFtab.html).
4241
type: list
4342
elements: dict
4443
suboptions:
@@ -235,11 +234,9 @@
235234

236235
class AnsibleCMCIUpdateModule(AnsibleCMCIModule):
237236
def __init__(self):
238-
# pylint: disable=super-with-arguments
239237
super(AnsibleCMCIUpdateModule, self).__init__('PUT')
240238

241239
def init_argument_spec(self): # type: () -> Dict
242-
# pylint: disable=super-with-arguments
243240
argument_spec = super(AnsibleCMCIUpdateModule, self)\
244241
.init_argument_spec()
245242
argument_spec.update(RESOURCES_ARGUMENT)

0 commit comments

Comments
 (0)