switch scripts module to no longer use set_prefix()

This commit is contained in:
jesopo 2019-11-25 10:53:16 +00:00
parent 73232b40e1
commit 76286e2bd0

View file

@ -60,9 +60,9 @@ class Module(ModuleManager.BaseModule):
if out:
if proc.returncode == 0:
if "stdout" in event:
event["stdout"].set_prefix(name)
event["stdout"].prefix = name
event["stdout"].write(out)
else:
if "stderr" in event:
event["stderr"].set_prefix(name)
event["stderr"].prefix = name
event["stderr"].write(out)