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