Strip command output

This commit is contained in:
2020-11-22 01:30:02 +00:00
parent 6b841f3a78
commit 5458e4d408
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -27,6 +27,7 @@ def set_wiki_password(username, password):
shell=False, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output = result.stdout or result.stderr
output = output.strip()
logger.info('Output: ' + output)