Minor patch

This commit is contained in:
Miroslav Stampar 2014-06-12 08:56:35 +02:00
parent 295b2f8603
commit 2beeb178fb

View File

@ -42,7 +42,7 @@ class Takeover(GenericTakeover):
# Reference: http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_basedir
self.__basedir = unArrayizeValue(inject.getValue("SELECT @@basedir"))
if re.search("^[\w]\:[\/\\\\]+", self.__basedir, re.I):
if re.search("^[\w]\:[\/\\\\]+", (self.__basedir or ""), re.I):
Backend.setOs(OS.WINDOWS)
else:
Backend.setOs(OS.LINUX)