From 563c73c4c7c1674f638716a0ca6f681db11a8bba Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Mon, 30 Jun 2014 18:09:11 +0100 Subject: [PATCH] working on #742 - code cleanup --- plugins/dbms/mssqlserver/filesystem.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugins/dbms/mssqlserver/filesystem.py b/plugins/dbms/mssqlserver/filesystem.py index 8a72e63b7..bcc43dce0 100644 --- a/plugins/dbms/mssqlserver/filesystem.py +++ b/plugins/dbms/mssqlserver/filesystem.py @@ -175,8 +175,6 @@ class Filesystem(GenericFilesystem): print "dFile:", dFile print "fileType:", fileType - randFile = "tmpf%s.txt" % randomStr(lowercase=True) - randFilePath = "%s\%s" % (tmpPath, randFile) encodedFileContent = base64encode(wFileContent) # TODO: need to be fixed @@ -186,10 +184,7 @@ class Filesystem(GenericFilesystem): logger.debug("converting the base64-encoded file utilizing PowerShell") - commands = ("cd \"%s\"" % tmpPath, - "powershell -EncodedCommand %s" % base64encode(psString)) -# "powershell -EncodedCommand %s" % base64encode(psString), -# "del /F /Q %s" % randFilePath) + commands = ("cd \"%s\"" % tmpPath, "powershell -EncodedCommand %s" % base64encode(psString)) complComm = " & ".join(command for command in commands) self.execCmd(complComm)