opensas/openshift — Issue #27: [improve] add an exitOnError to shellexecute function
Author: opensas
Created: 2012-01-30 05:38:28+00:00
State: open
Labels: improve

most times shellexecute is used according to the following pattern:

out, err, ret = shellexecute( ['git', 'push', 'origin'], location=app_folder, msg="Pushing changes to origin", debug=options.debug, output=True)
if err != '' or ret != 0:
err.insert(0, "ERROR - error pushing changes")
error_message(err)

add a parameter to automatically work like that... so we can spare those three lines of code...