Minor code refactoring

This commit is contained in:
Bernardo Damele
2010-10-20 22:09:03 +00:00
parent 862cc9ac53
commit e73e06069b
6 changed files with 16 additions and 11 deletions

View File

@@ -10,6 +10,7 @@ See the file 'doc/COPYING' for copying permission
import os
from lib.core.agent import agent
from lib.core.common import dataToStdout
from lib.core.common import readInput
from lib.core.convert import urlencode
from lib.core.data import conf
@@ -360,7 +361,7 @@ class UDF:
if output:
conf.dumper.string("return value", output)
else:
print "No return value"
dataToStdout("No return value\n")
else:
self.udfExecCmd(cmd, udfName=udfToCall, silent=True)