put executed commands in as a small title

master
Faelix Incident Handler 7 years ago
parent 63fc5a49ce
commit 82126a1f51

@ -107,7 +107,7 @@ Again, after setting the headline status you must: **@FIH PUBLISH**
def exec_to_message( cmdline ): def exec_to_message( cmdline ):
results = "`" + cmdline + "`:\n\n" results = "#### `" + cmdline + "`:\n\n"
process = subprocess.Popen( cmdline, shell = True, cwd = app.config[ "STATUS_ROOT" ], stdout = subprocess.PIPE, stderr = subprocess.PIPE ) process = subprocess.Popen( cmdline, shell = True, cwd = app.config[ "STATUS_ROOT" ], stdout = subprocess.PIPE, stderr = subprocess.PIPE )
stdout = strip_progress( strip_ansi( process.stdout.read().decode( 'ascii', 'ignore' ) ) ) stdout = strip_progress( strip_ansi( process.stdout.read().decode( 'ascii', 'ignore' ) ) )

Loading…
Cancel
Save