Skip to content

Commit 06b9fba

Browse files
committed
refactor: get_res_trigger_type - Add missing TRIGGER_RES_TYPE_OTHER
1 parent af5f020 commit 06b9fba

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
@@ -5745,6 +5745,7 @@ def get_trigger_res_type(uint16_t inx):
57455745
- TRIGGER_RES_TYPE_SLURMDBD 4
57465746
- TRIGGER_RES_TYPE_DATABASE 5
57475747
- TRIGGER_RES_TYPE_FRONT_END 6
5748+
- TRIGGER_RES_TYPE_OTHER 7
57485749
:returns: Trigger reservation state string
57495750
:rtype: `string`
57505751
"""
@@ -5765,6 +5766,8 @@ cdef inline object __get_trigger_res_type(uint16_t ResType):
57655766
rtype = 'database'
57665767
elif ResType == TRIGGER_RES_TYPE_FRONT_END:
57675768
rtype = 'front_end'
5769+
elif ResType == TRIGGER_RES_TYPE_OTHER:
5770+
rtype = 'other'
57685771

57695772
return u"%s" % rtype
57705773

0 commit comments

Comments
 (0)