final fix for reading registry keys (now both parse and non-parse reads work fine)

This commit is contained in:
Miroslav Stampar 2010-03-12 22:26:06 +00:00
parent 0a2fe651ab
commit 6b1ae62753

View File

@ -95,12 +95,13 @@ class Registry:
logger.debug("reading registry key '%s' value '%s'" % (regKey, regValue)) logger.debug("reading registry key '%s' value '%s'" % (regKey, regValue))
if not parse: data = self.evalCmd(self.__batPathRemote)
first = len(regKey) + 6
else: if data:
first = None pattern = ' '
index = data.find(pattern)
data = self.evalCmd(self.__batPathRemote, first) if index != -1:
data = data[index + len(pattern):]
self.delRemoteFile(self.__batPathRemote, doubleslash=True) self.delRemoteFile(self.__batPathRemote, doubleslash=True)