**** CubicPower OpenStack Study ****
def match(value, req):
words = req.split()
op = method = None
if words:
op = words.pop(0)
method = _op_methods.get(op)
if op != '' and not method: return value == req
if value is None:
return False
if op == '': # Ex: v1 v2 v3 while True:
if words.pop(0) == value:
return True
if not words:
break
op = words.pop(0) # remove a keyword if not words:
break
return False
if words and method(value, words[0]):
return True
return False