Avoid DeprecationWarning on Python >= 2.6
authorCarlos Valiente <superdupont@gmail.com>
Tue, 5 May 2009 14:43:04 +0000 (15:43 +0100)
committerIustin Pop <iustin@google.com>
Tue, 5 May 2009 15:06:34 +0000 (17:06 +0200)
commit7ffe8fbafc663f749660d9356521bbab3c2b5784
tree00b2ee1aaafc04628300a9834eed773617506af3
parentcf192249f33cca226cd791fca308a62d3d9afbf6
Avoid DeprecationWarning on Python >= 2.6

Python 2.6 complains about module 'sha' being deprecated. It makes
execution of Ganeti commands a bit annoying, and when you run
'ganeti-watcher' in cron jobs, you get a mail message after every
execution.

Tests pass under under Python 2.6 and Python 2.4.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/utils.py