oc-cdtapi 3.13.6__py3-none-any.whl → 3.13.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oc_cdtapi/Dbsm2API.py +1 -2
- oc_cdtapi/DmsGetverAPI.py +4 -4
- oc_cdtapi/ForemanAPI.py +2 -2
- {oc_cdtapi-3.13.6.dist-info → oc_cdtapi-3.13.8.dist-info}/METADATA +1 -1
- {oc_cdtapi-3.13.6.dist-info → oc_cdtapi-3.13.8.dist-info}/RECORD +9 -9
- {oc_cdtapi-3.13.6.dist-info → oc_cdtapi-3.13.8.dist-info}/WHEEL +1 -1
- {oc_cdtapi-3.13.6.data → oc_cdtapi-3.13.8.data}/scripts/nexus.py +0 -0
- {oc_cdtapi-3.13.6.dist-info → oc_cdtapi-3.13.8.dist-info}/LICENSE +0 -0
- {oc_cdtapi-3.13.6.dist-info → oc_cdtapi-3.13.8.dist-info}/top_level.txt +0 -0
oc_cdtapi/Dbsm2API.py
CHANGED
@@ -15,8 +15,7 @@ class Dbsm2API (API.HttpAPI):
|
|
15
15
|
logging.debug('Reached __init__')
|
16
16
|
logging.debug('Calling base class constructor for availability of HttpAPI methods')
|
17
17
|
|
18
|
-
|
19
|
-
super(Dbsm2API, self).__init__(*args, **argv)
|
18
|
+
super().__init__(*args, **argv)
|
20
19
|
|
21
20
|
# auth token
|
22
21
|
self.auth_token = None
|
oc_cdtapi/DmsGetverAPI.py
CHANGED
@@ -14,8 +14,7 @@ class DmsGetverAPI (API.HttpAPI):
|
|
14
14
|
logging.debug('Reached __init__')
|
15
15
|
logging.debug('Calling base class constructor for availability of HttpAPI methods')
|
16
16
|
|
17
|
-
|
18
|
-
super(DmsGetverAPI, self).__init__(*args, **argv)
|
17
|
+
super().__init__(*args, **argv)
|
19
18
|
|
20
19
|
# delivery states in process
|
21
20
|
self.waiting_states = ['INITIATED', 'PROCESSING', 'QUEUED']
|
@@ -141,11 +140,12 @@ class DmsGetverAPI (API.HttpAPI):
|
|
141
140
|
|
142
141
|
return gav_text
|
143
142
|
|
144
|
-
def get_dms_log(self, distr_id, distr_option):
|
143
|
+
def get_dms_log(self, distr_id, distr_option, **kwargs):
|
145
144
|
"""
|
146
145
|
Retrieve dms log
|
147
146
|
:param str distr_id: distributive ID (digits-as-string)
|
148
147
|
:param str distr_option: additional distributive option
|
148
|
+
:param **kwargs: other 'get'-related keyword arguments: 'stream', 'binary', 'write_to', etc.
|
149
149
|
:return str: DMS log, or None if no logs found or response error
|
150
150
|
"""
|
151
151
|
logging.debug('Reached get_dms_log')
|
@@ -154,7 +154,7 @@ class DmsGetverAPI (API.HttpAPI):
|
|
154
154
|
url = self.get_dms_log_url(distr_id, distr_option)
|
155
155
|
|
156
156
|
log = None
|
157
|
-
resp = self.get(url)
|
157
|
+
resp = self.get(url, **kwargs)
|
158
158
|
status_code = resp.status_code
|
159
159
|
logging.debug('Response status code: [%s]' % status_code)
|
160
160
|
|
oc_cdtapi/ForemanAPI.py
CHANGED
@@ -22,11 +22,11 @@ class ForemanAPI(HttpAPI):
|
|
22
22
|
|
23
23
|
headers = {"Accept": "version=2,application/json", "Content-Type": "application/json"}
|
24
24
|
|
25
|
-
def __init__(self):
|
25
|
+
def __init__(self, *args, **kwargs):
|
26
26
|
"""
|
27
27
|
Class initialization, setting the default values for a new host
|
28
28
|
"""
|
29
|
-
|
29
|
+
super().__init__(*args, **kwargs)
|
30
30
|
class_defaults = namedtuple("values", "exp_date location_id hostgroup deploy_on")
|
31
31
|
exp_date = self._set_expiration()
|
32
32
|
location_id = 5
|
@@ -1,17 +1,17 @@
|
|
1
1
|
oc_cdtapi/API.py,sha256=hpdnzyirYT_wISeznRmoqr-umYRT6uqKVwhmCXyj8Nk,12398
|
2
|
-
oc_cdtapi/Dbsm2API.py,sha256=
|
2
|
+
oc_cdtapi/Dbsm2API.py,sha256=_BdPbQC650G4qrzBuqlqvPE5TsFuWWMSwKaUwQ7ZCWs,8697
|
3
3
|
oc_cdtapi/DevPIAPI.py,sha256=Nn63Ob0kA5XXuRZ3OIWG2rcnSsztKq9yPI6Lu2zX3Gk,1836
|
4
4
|
oc_cdtapi/DmsAPI.py,sha256=eNFdwQLhCbPvHB5SUtP4QcZZtSdjkgt_Cxn3oQ3iJ5s,15605
|
5
|
-
oc_cdtapi/DmsGetverAPI.py,sha256=
|
6
|
-
oc_cdtapi/ForemanAPI.py,sha256=
|
5
|
+
oc_cdtapi/DmsGetverAPI.py,sha256=ZPU4HlF59fngKu5mSFhtss3rlBuduffDOSm_y3XWrxk,15556
|
6
|
+
oc_cdtapi/ForemanAPI.py,sha256=arT3upMjSZ4K9SUl1YXZrMo6fz6YseMX_gtmqs0MmFk,42847
|
7
7
|
oc_cdtapi/JenkinsAPI.py,sha256=lZ8pe3a4eb_6h53JE7QLuzOSlu7Sqatc9PQwWhio9Vg,15748
|
8
8
|
oc_cdtapi/NexusAPI.py,sha256=uU12GtHvKlWorFaPAnFcQ5AGEc94MZ5SdmfM2Pw3F7A,26122
|
9
9
|
oc_cdtapi/RundeckAPI.py,sha256=O3LmcFaHSz8UqeUyIHTTEMJncDD191Utd-iZaeJay2s,24243
|
10
10
|
oc_cdtapi/TestServer.py,sha256=HV97UWg2IK4gOYAp9yaMdwFUWsw9v66MxyZdI3qQctA,2715
|
11
11
|
oc_cdtapi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
|
-
oc_cdtapi-3.13.
|
13
|
-
oc_cdtapi-3.13.
|
14
|
-
oc_cdtapi-3.13.
|
15
|
-
oc_cdtapi-3.13.
|
16
|
-
oc_cdtapi-3.13.
|
17
|
-
oc_cdtapi-3.13.
|
12
|
+
oc_cdtapi-3.13.8.data/scripts/nexus.py,sha256=4teqZ_KtCSrwHDJVgA7lkreteod4Xt5XJFZNbwb7E6E,6858
|
13
|
+
oc_cdtapi-3.13.8.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
14
|
+
oc_cdtapi-3.13.8.dist-info/METADATA,sha256=RrUZhqf1eyQxt2NkB0nFKdD4av2WjbszwCsDgofyt9I,254
|
15
|
+
oc_cdtapi-3.13.8.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
16
|
+
oc_cdtapi-3.13.8.dist-info/top_level.txt,sha256=d4-5-D-0CSeSXYuLCP7-nIFCpjkfmJr-Y_muzds8iVU,10
|
17
|
+
oc_cdtapi-3.13.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|