Fix utils.MatchNameComponent for full matches
authorIustin Pop <iustin@google.com>
Tue, 22 Sep 2009 13:02:41 +0000 (15:02 +0200)
committerIustin Pop <iustin@google.com>
Tue, 22 Sep 2009 14:01:03 +0000 (16:01 +0200)
commit3a541d90a21f521de6186c07d028f5b0371c79df
tree34b85b178226dba27a32207285c02f0584f8e45b
parent0f828357b44d17af11bc0c6e302ec95a964a16b3
Fix utils.MatchNameComponent for full matches

While ‘test1’ matches both ‘test1’ and ‘test1.example’, it has a full,
exact match and we should return it if that is the case.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/utils.py
test/ganeti.utils_unittest.py