oc-cdtapi 3.13.12__py3-none-any.whl → 3.13.14__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 CHANGED
@@ -59,6 +59,10 @@ 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
+ logging.debug('oracle_version: [%s]' % self.oracle_version)
63
+ logging.debug('oracle_encoding: [%s]' % self.oracle_encoding)
64
+ logging.debug('oracle_edition: [%s]' % self.oracle_edition)
65
+
62
66
  if client_filter is None:
63
67
  logging.debug('received None client_filter, setting to empty string')
64
68
  client_filter = ''
oc_cdtapi/ForemanAPI.py CHANGED
@@ -780,10 +780,13 @@ class ForemanAPI(HttpAPI):
780
780
  Turns on/off power on the host
781
781
  """
782
782
  logging.debug('Reached host_power_v2')
783
- logging.debug('Passing to host_power_v1')
784
- logging.debug('host = [%s]' % hostname)
785
- logging.debug('action = [%s]' % action)
786
- self.host_power_v1(hostname, action)
783
+ actions = ["on", "off"]
784
+ if action not in actions:
785
+ raise ForemanAPIError("500 - Incorrect power action was provided")
786
+ params = json.dumps({"power_action": action})
787
+ request = self.put(posixpath.join('hosts', hostname, "power"), headers=self.headers, data=params)
788
+ if not request.status_code == 200:
789
+ logging.error('Server returned an error [%s] [%s]' % (request.status_code, request.text))
787
790
 
788
791
  def get_report(self, id):
789
792
  """
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: oc-cdtapi
3
- Version: 3.13.12
3
+ Version: 3.13.14
4
4
  Summary: Custom Development python API libraries
5
5
  License: Apache2.0
6
6
  Requires-Python: >=3.6
@@ -8,4 +8,8 @@ Description-Content-Type: text/plain
8
8
  License-File: LICENSE
9
9
  Requires-Dist: requests
10
10
  Requires-Dist: packaging
11
-
11
+ Dynamic: description-content-type
12
+ Dynamic: license
13
+ Dynamic: requires-dist
14
+ Dynamic: requires-python
15
+ Dynamic: summary
@@ -1,17 +1,17 @@
1
1
  oc_cdtapi/API.py,sha256=hpdnzyirYT_wISeznRmoqr-umYRT6uqKVwhmCXyj8Nk,12398
2
- oc_cdtapi/Dbsm2API.py,sha256=u0qhWF_fbiWNRjJVezYwOzDkicCmifLDiiWfW9FWXio,9756
2
+ oc_cdtapi/Dbsm2API.py,sha256=WDBst1dCAmDVU9d9Ogzwp2nkjtKZ4thU2xG4sAPI_Nk,9963
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
6
- oc_cdtapi/ForemanAPI.py,sha256=arT3upMjSZ4K9SUl1YXZrMo6fz6YseMX_gtmqs0MmFk,42847
6
+ oc_cdtapi/ForemanAPI.py,sha256=0rMK_C1xSp-S8UcFuz2nE7U0HEVmZKJefCW9T_9ksnU,43106
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.12.data/scripts/nexus.py,sha256=4teqZ_KtCSrwHDJVgA7lkreteod4Xt5XJFZNbwb7E6E,6858
13
- oc_cdtapi-3.13.12.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
- oc_cdtapi-3.13.12.dist-info/METADATA,sha256=fKNb-Qt9bB8heBmvfAMVZkjHAuvlE2B72Ekn8pLsNxc,255
15
- oc_cdtapi-3.13.12.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
16
- oc_cdtapi-3.13.12.dist-info/top_level.txt,sha256=d4-5-D-0CSeSXYuLCP7-nIFCpjkfmJr-Y_muzds8iVU,10
17
- oc_cdtapi-3.13.12.dist-info/RECORD,,
12
+ oc_cdtapi-3.13.14.data/scripts/nexus.py,sha256=4teqZ_KtCSrwHDJVgA7lkreteod4Xt5XJFZNbwb7E6E,6858
13
+ oc_cdtapi-3.13.14.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
+ oc_cdtapi-3.13.14.dist-info/METADATA,sha256=3CROn0kP_389_MfUdDO1s8h99qfadDGZ41BqGxXaZWM,370
15
+ oc_cdtapi-3.13.14.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
16
+ oc_cdtapi-3.13.14.dist-info/top_level.txt,sha256=d4-5-D-0CSeSXYuLCP7-nIFCpjkfmJr-Y_muzds8iVU,10
17
+ oc_cdtapi-3.13.14.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5