Strip command output

This commit is contained in:
Tanner Collin 2020-11-22 01:30:02 +00:00
parent 6b841f3a78
commit 5458e4d408
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ def set_wiki_password(username, password):
shell=False, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) shell=False, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output = result.stdout or result.stderr output = result.stdout or result.stderr
output = output.strip()
logger.info('Output: ' + output) logger.info('Output: ' + output)

View File

@ -13,7 +13,7 @@ def check_auth():
@app.route('/') @app.route('/')
def index(): def index():
return '<i>SEE YOU SPACE SAMURAI...</i>' return '<i>LIFE IS BUT A DREAM...</i>'
@app.route('/set-password', methods=['POST']) @app.route('/set-password', methods=['POST'])
def set_password(): def set_password():