oc-cdtapi 3.13.13__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/ForemanAPI.py +7 -4
- {oc_cdtapi-3.13.13.dist-info → oc_cdtapi-3.13.14.dist-info}/METADATA +7 -3
- {oc_cdtapi-3.13.13.dist-info → oc_cdtapi-3.13.14.dist-info}/RECORD +7 -7
- {oc_cdtapi-3.13.13.dist-info → oc_cdtapi-3.13.14.dist-info}/WHEEL +1 -1
- {oc_cdtapi-3.13.13.data → oc_cdtapi-3.13.14.data}/scripts/nexus.py +0 -0
- {oc_cdtapi-3.13.13.dist-info → oc_cdtapi-3.13.14.dist-info}/LICENSE +0 -0
- {oc_cdtapi-3.13.13.dist-info → oc_cdtapi-3.13.14.dist-info}/top_level.txt +0 -0
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
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
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
|
+
Metadata-Version: 2.2
|
2
2
|
Name: oc-cdtapi
|
3
|
-
Version: 3.13.
|
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
|
@@ -3,15 +3,15 @@ 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=
|
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.
|
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.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,,
|
File without changes
|
File without changes
|
File without changes
|