fix a regression for shell subprocess

This commit is contained in:
es80 2020-06-21 17:56:52 +01:00 committed by GitHub
parent 79fb28512f
commit e17ef8614f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,7 @@ class Module(core.module.Module):
def update(self):
# if requested then run not async version and just execute command in this thread
if not self.__async:
self.__output = util.cli.execute(self.__command, ignore_errors=True).strip()
self.__output = util.cli.execute(self.__command, shell=True, ignore_errors=True).strip()
return
# if previous thread didn't end yet then don't do anything