oc-cdtapi 3.15.5__py3-none-any.whl → 3.16.0__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 +8 -0
- {oc_cdtapi-3.15.5.dist-info → oc_cdtapi-3.16.0.dist-info}/METADATA +1 -1
- {oc_cdtapi-3.15.5.dist-info → oc_cdtapi-3.16.0.dist-info}/RECORD +7 -7
- {oc_cdtapi-3.15.5.data → oc_cdtapi-3.16.0.data}/scripts/nexus.py +0 -0
- {oc_cdtapi-3.15.5.dist-info → oc_cdtapi-3.16.0.dist-info}/WHEEL +0 -0
- {oc_cdtapi-3.15.5.dist-info → oc_cdtapi-3.16.0.dist-info}/licenses/LICENSE +0 -0
- {oc_cdtapi-3.15.5.dist-info → oc_cdtapi-3.16.0.dist-info}/top_level.txt +0 -0
oc_cdtapi/ForemanAPI.py
CHANGED
@@ -773,6 +773,14 @@ class ForemanAPI(HttpAPI):
|
|
773
773
|
logging.debug(response)
|
774
774
|
return response
|
775
775
|
|
776
|
+
def is_host_powered_on(self, hostname):
|
777
|
+
"""
|
778
|
+
Returns true if host is powered on
|
779
|
+
"""
|
780
|
+
logging.debug('Reached is_host_powered_on')
|
781
|
+
response = self.get(posixpath.join("hosts", hostname, "power")).json()
|
782
|
+
return response['state'] == 'on'
|
783
|
+
|
776
784
|
def host_power(self, hostname, action):
|
777
785
|
"""
|
778
786
|
wrapper for api v1/v2
|
@@ -3,16 +3,16 @@ oc_cdtapi/Dbsm2API.py,sha256=WDBst1dCAmDVU9d9Ogzwp2nkjtKZ4thU2xG4sAPI_Nk,9963
|
|
3
3
|
oc_cdtapi/DevPIAPI.py,sha256=9WND9ld66eHmC5qoLJq3KDYSoO-pP69UqOQsGZNLZYg,1835
|
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=9r1MSOsubiSxM1sdzF2MHD7IcSwX9Y4UDJknHqQK07g,44255
|
7
7
|
oc_cdtapi/JenkinsAPI.py,sha256=lZ8pe3a4eb_6h53JE7QLuzOSlu7Sqatc9PQwWhio9Vg,15748
|
8
8
|
oc_cdtapi/NexusAPI.py,sha256=uU12GtHvKlWorFaPAnFcQ5AGEc94MZ5SdmfM2Pw3F7A,26122
|
9
9
|
oc_cdtapi/PgQAPI.py,sha256=bAgwo4YVuD60uAEv7hrjTQmmAfcMP86IBlSNhlXJzWc,6882
|
10
10
|
oc_cdtapi/RundeckAPI.py,sha256=O3LmcFaHSz8UqeUyIHTTEMJncDD191Utd-iZaeJay2s,24243
|
11
11
|
oc_cdtapi/TestServer.py,sha256=HV97UWg2IK4gOYAp9yaMdwFUWsw9v66MxyZdI3qQctA,2715
|
12
12
|
oc_cdtapi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
|
-
oc_cdtapi-3.
|
14
|
-
oc_cdtapi-3.
|
15
|
-
oc_cdtapi-3.
|
16
|
-
oc_cdtapi-3.
|
17
|
-
oc_cdtapi-3.
|
18
|
-
oc_cdtapi-3.
|
13
|
+
oc_cdtapi-3.16.0.data/scripts/nexus.py,sha256=4teqZ_KtCSrwHDJVgA7lkreteod4Xt5XJFZNbwb7E6E,6858
|
14
|
+
oc_cdtapi-3.16.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
15
|
+
oc_cdtapi-3.16.0.dist-info/METADATA,sha256=7tiZRQq6D78FciUYuGXs3Ss_zL1l5X8mDg6rDlMCZvw,477
|
16
|
+
oc_cdtapi-3.16.0.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
17
|
+
oc_cdtapi-3.16.0.dist-info/top_level.txt,sha256=d4-5-D-0CSeSXYuLCP7-nIFCpjkfmJr-Y_muzds8iVU,10
|
18
|
+
oc_cdtapi-3.16.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|