oc-cdtapi 3.15.2__py3-none-any.whl → 3.15.3__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 CHANGED
@@ -243,14 +243,14 @@ class ForemanAPI(HttpAPI):
243
243
  deploy_on, custom_json):
244
244
  """
245
245
  Creates a host using the default parameters or the ones from an external json
246
- note that create_vm in engine actually sends db_task instead of hostname and custom_json,
246
+ note that create_vm in engine actually sends db_task instead of hostname and custom_json,
247
247
  other parms are ignored
248
248
  """
249
249
  logging.debug('Reached create_host_v1')
250
250
  logging.debug('hostname = [%s]' % hostname)
251
251
 
252
252
  if not exp_date:
253
- exp_date = self.defs.exp_date
253
+ exp_date = self._set_expiration()
254
254
  if not location_id:
255
255
  location_id = self.defs.location_id
256
256
  if not hostgroup:
@@ -303,7 +303,7 @@ class ForemanAPI(HttpAPI):
303
303
  disk = 50
304
304
  owner_id = None
305
305
 
306
- exp_date = self.defs.exp_date
306
+ exp_date = self._set_expiration()
307
307
  location_id = self.defs.location_id
308
308
  hostgroup = self.defs.hostgroup
309
309
  deploy_on = self.defs.deploy_on
@@ -972,7 +972,7 @@ class ForemanAPI(HttpAPI):
972
972
  def set_host_expiry_v1(self, hostname, expiry):
973
973
  """
974
974
  Attempts to set host expiry date
975
- :param hostname: full hostname
975
+ :param hostname: full hostname
976
976
  :param expiry: expiry date in format yyyy-mm-dd
977
977
  """
978
978
  logging.debug('Reached set_host_expiry_v1')
@@ -984,7 +984,7 @@ class ForemanAPI(HttpAPI):
984
984
  def set_host_expiry_v2(self, hostname, expiry):
985
985
  """
986
986
  Attempts to set host expiry date
987
- :param hostname: full hostname
987
+ :param hostname: full hostname
988
988
  :param expiry: expiry date in format yyyy-mm-dd
989
989
  """
990
990
  logging.debug('Reached set_host_expiry_v2')
@@ -1051,7 +1051,7 @@ class ForemanAPI(HttpAPI):
1051
1051
  """
1052
1052
  logging.debug('Reached get_flavor_id_v1')
1053
1053
  flavors_list = self.get(posixpath.join("compute_resources", str(compute_resource_id),
1054
- "available_flavors")).json()["results"]
1054
+ "available_flavors")).json()["results"]
1055
1055
 
1056
1056
  try:
1057
1057
  flavor_id = next(flavor["id"] for flavor in flavors_list if flavor["name"] == flavor_name)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: oc-cdtapi
3
- Version: 3.15.2
3
+ Version: 3.15.3
4
4
  Summary: Custom Development python API libraries
5
5
  License: Apache2.0
6
6
  Requires-Python: >=3.6
@@ -8,6 +8,7 @@ Description-Content-Type: text/plain
8
8
  License-File: LICENSE
9
9
  Requires-Dist: requests
10
10
  Requires-Dist: packaging
11
+ Requires-Dist: psycopg2
11
12
  Dynamic: description
12
13
  Dynamic: description-content-type
13
14
  Dynamic: license
@@ -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=c0KXwenxfRonyUhDqsz_VYS_MgS8gRqBRAnnGXpLqh8,43959
6
+ oc_cdtapi/ForemanAPI.py,sha256=KkRdPqp-dyKoBAZ8WCQRuMkQ0LqZEgw9by4ZAe7Gi2g,43999
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.15.2.data/scripts/nexus.py,sha256=4teqZ_KtCSrwHDJVgA7lkreteod4Xt5XJFZNbwb7E6E,6858
14
- oc_cdtapi-3.15.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
15
- oc_cdtapi-3.15.2.dist-info/METADATA,sha256=Ghp6vk5n7Olal8OUuDZZA11RKRJTaEF1XQCOZTyYXPc,431
16
- oc_cdtapi-3.15.2.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
17
- oc_cdtapi-3.15.2.dist-info/top_level.txt,sha256=d4-5-D-0CSeSXYuLCP7-nIFCpjkfmJr-Y_muzds8iVU,10
18
- oc_cdtapi-3.15.2.dist-info/RECORD,,
13
+ oc_cdtapi-3.15.3.data/scripts/nexus.py,sha256=4teqZ_KtCSrwHDJVgA7lkreteod4Xt5XJFZNbwb7E6E,6858
14
+ oc_cdtapi-3.15.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
15
+ oc_cdtapi-3.15.3.dist-info/METADATA,sha256=SngV3vhE4NifsES4_aKHZJF2kKIJvQVZQIme12Il6RI,455
16
+ oc_cdtapi-3.15.3.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
17
+ oc_cdtapi-3.15.3.dist-info/top_level.txt,sha256=d4-5-D-0CSeSXYuLCP7-nIFCpjkfmJr-Y_muzds8iVU,10
18
+ oc_cdtapi-3.15.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.2)
2
+ Generator: setuptools (76.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5