Skip to content

Commit 4957db7

Browse files
pllopistazend
authored andcommitted
Support updating end_time in slurm_update_reservation (#255)
1 parent 6c6274d commit 4957db7

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
@@ -4312,6 +4312,9 @@ def slurm_update_reservation(dict reservation_dict={}):
43124312
if time_value != -1:
43134313
resv_msg.start_time = time_value
43144314

4315+
if reservation_dict.get('end_time'):
4316+
resv_msg.end_time = reservation_dict['end_time']
4317+
43154318
if reservation_dict.get('duration'):
43164319
resv_msg.duration = reservation_dict.get('duration')
43174320

0 commit comments

Comments
 (0)