Skip to content

Commit a2fa6e1

Browse files
authored
Support updating end_time in slurm_update_reservation (#255)
1 parent da978a6 commit a2fa6e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyslurm/pyslurm.pyx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4314,6 +4314,9 @@ def slurm_update_reservation(dict reservation_dict={}):
43144314
if time_value != -1:
43154315
resv_msg.start_time = time_value
43164316

4317+
if reservation_dict.get('end_time'):
4318+
resv_msg.end_time = reservation_dict['end_time']
4319+
43174320
if reservation_dict.get('duration'):
43184321
resv_msg.duration = reservation_dict.get('duration')
43194322

0 commit comments

Comments
 (0)