oc-cdtapi 3.13.9__py3-none-any.whl → 3.13.10__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 +19 -1
- {oc_cdtapi-3.13.9.dist-info → oc_cdtapi-3.13.10.dist-info}/METADATA +1 -1
- {oc_cdtapi-3.13.9.dist-info → oc_cdtapi-3.13.10.dist-info}/RECORD +7 -7
- {oc_cdtapi-3.13.9.data → oc_cdtapi-3.13.10.data}/scripts/nexus.py +0 -0
- {oc_cdtapi-3.13.9.dist-info → oc_cdtapi-3.13.10.dist-info}/LICENSE +0 -0
- {oc_cdtapi-3.13.9.dist-info → oc_cdtapi-3.13.10.dist-info}/WHEEL +0 -0
- {oc_cdtapi-3.13.9.dist-info → oc_cdtapi-3.13.10.dist-info}/top_level.txt +0 -0
oc_cdtapi/Dbsm2API.py
CHANGED
@@ -27,7 +27,7 @@ class Dbsm2API (API.HttpAPI):
|
|
27
27
|
self.exit_states = ['FAILED', 'SUCCESS']
|
28
28
|
|
29
29
|
# wait for state timeout
|
30
|
-
self.wait_state_timeout =
|
30
|
+
self.wait_state_timeout = 1800
|
31
31
|
|
32
32
|
# wait for state request interval
|
33
33
|
self.wait_state_sleep = 30
|
@@ -59,6 +59,9 @@ class Dbsm2API (API.HttpAPI):
|
|
59
59
|
logging.debug('client_filter: [%s]' % client_filter)
|
60
60
|
logging.debug('client_code: [%s]' % client_code)
|
61
61
|
logging.debug('schema_name: [%s]' % schema_name)
|
62
|
+
if client_filter is None:
|
63
|
+
logging.debug('received None client_filter, setting to empty string')
|
64
|
+
client_filter = ''
|
62
65
|
|
63
66
|
url = posixpath.join('api', 'v1', 'images', 'custom-cdt')
|
64
67
|
headers = self.get_headers()
|
@@ -74,6 +77,8 @@ class Dbsm2API (API.HttpAPI):
|
|
74
77
|
'schema_name': schema_name,
|
75
78
|
'remap_tablespaces': 'true'
|
76
79
|
}
|
80
|
+
logging.debug('dumping request params')
|
81
|
+
logging.debug(json.dumps(params, indent=4))
|
77
82
|
r = self.post(url, headers=headers, json=params)
|
78
83
|
return self.json_or_none(r)
|
79
84
|
|
@@ -123,6 +128,11 @@ class Dbsm2API (API.HttpAPI):
|
|
123
128
|
"""
|
124
129
|
logging.debug('Reached get_image_details')
|
125
130
|
logging.debug('image_id: [%s]' % image_id)
|
131
|
+
|
132
|
+
if image_id is None:
|
133
|
+
logging.debug('received None image_id, returning None')
|
134
|
+
return None
|
135
|
+
|
126
136
|
headers = self.get_headers()
|
127
137
|
url = posixpath.join('api', 'v1', 'images', image_id)
|
128
138
|
r = self.get(url, headers=headers)
|
@@ -220,6 +230,14 @@ class Dbsm2API (API.HttpAPI):
|
|
220
230
|
"""
|
221
231
|
logging.debug('Reached wait_for_image')
|
222
232
|
logging.debug('audit_id: [%s]' % audit_id)
|
233
|
+
|
234
|
+
if not isinstance(self.wait_state_timeout, int):
|
235
|
+
logging.debug('wait_state_timeout is not integer, attempting to convert')
|
236
|
+
self.wait_state_timeout = int(self.wait_state_timeout)
|
237
|
+
if not isinstance(self.wait_state_sleep, int):
|
238
|
+
logging.debug('wait_state_sleep in not integer, attempting to convert')
|
239
|
+
self.wait_state_sleep = int(self.wait_state_sleep)
|
240
|
+
|
223
241
|
ela = 0
|
224
242
|
st = int(time.time())
|
225
243
|
audit = None
|
@@ -1,5 +1,5 @@
|
|
1
1
|
oc_cdtapi/API.py,sha256=hpdnzyirYT_wISeznRmoqr-umYRT6uqKVwhmCXyj8Nk,12398
|
2
|
-
oc_cdtapi/Dbsm2API.py,sha256=
|
2
|
+
oc_cdtapi/Dbsm2API.py,sha256=igPIos7ArjKPnV41U9fHGc36ECvG25IFoSvizX9E59Y,9596
|
3
3
|
oc_cdtapi/DevPIAPI.py,sha256=Nn63Ob0kA5XXuRZ3OIWG2rcnSsztKq9yPI6Lu2zX3Gk,1836
|
4
4
|
oc_cdtapi/DmsAPI.py,sha256=eNFdwQLhCbPvHB5SUtP4QcZZtSdjkgt_Cxn3oQ3iJ5s,15605
|
5
5
|
oc_cdtapi/DmsGetverAPI.py,sha256=ZPU4HlF59fngKu5mSFhtss3rlBuduffDOSm_y3XWrxk,15556
|
@@ -9,9 +9,9 @@ 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.10.data/scripts/nexus.py,sha256=4teqZ_KtCSrwHDJVgA7lkreteod4Xt5XJFZNbwb7E6E,6858
|
13
|
+
oc_cdtapi-3.13.10.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
14
|
+
oc_cdtapi-3.13.10.dist-info/METADATA,sha256=Eu3YW8QPaTrux15ntpOOYfMo9y5V9An2e39S68paeiA,255
|
15
|
+
oc_cdtapi-3.13.10.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
16
|
+
oc_cdtapi-3.13.10.dist-info/top_level.txt,sha256=d4-5-D-0CSeSXYuLCP7-nIFCpjkfmJr-Y_muzds8iVU,10
|
17
|
+
oc_cdtapi-3.13.10.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|