Strip command output
This commit is contained in:
parent
6b841f3a78
commit
5458e4d408
|
@ -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)
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ def check_auth():
|
|||
|
||||
@app.route('/')
|
||||
def index():
|
||||
return '<i>SEE YOU SPACE SAMURAI...</i>'
|
||||
return '<i>LIFE IS BUT A DREAM...</i>'
|
||||
|
||||
@app.route('/set-password', methods=['POST'])
|
||||
def set_password():
|
||||
|
|
Loading…
Reference in New Issue
Block a user