Revision eb62069e lib/opcodes.py

b/lib/opcodes.py
37 37
import re
38 38
import operator
39 39

  
40
from ganeti import compat
40 41
from ganeti import constants
41 42
from ganeti import errors
42 43
from ganeti import ht
......
135 136
#: Utility function for L{OpClusterSetParams}
136 137
_TestClusterOsList = ht.TOr(ht.TNone,
137 138
  ht.TListOf(ht.TAnd(ht.TList, ht.TIsLength(2),
138
    ht.TMap(ht.WithDesc("GetFirstItem")(operator.itemgetter(0)),
139
    ht.TMap(ht.WithDesc("GetFirstItem")(compat.fst),
139 140
            ht.TElemOf(constants.DDMS_VALUES)))))
140 141

  
141 142

  

Also available in: Unified diff