diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2013-06-10 22:30:48 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2013-06-10 22:30:48 +0000 |
commit | bb01eeb962601cbbf6ee82658bc30b91bdb1ae7d (patch) | |
tree | 53066113a0a54e695856fca3feb13619f4ebc808 /morphlib/plugins/deploy_plugin.py | |
parent | c8959658a225bcd8a7575c002a36cc034d697237 (diff) | |
download | morph-bb01eeb962601cbbf6ee82658bc30b91bdb1ae7d.tar.gz |
deploy_plugin: Timestamp output of extensions
This requires a patch to cliapp to actually print the output, as there
is a bug that causes it to always output to a pipe.
Diffstat (limited to 'morphlib/plugins/deploy_plugin.py')
-rw-r--r-- | morphlib/plugins/deploy_plugin.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/morphlib/plugins/deploy_plugin.py b/morphlib/plugins/deploy_plugin.py index 3b2eb388..9950ce37 100644 --- a/morphlib/plugins/deploy_plugin.py +++ b/morphlib/plugins/deploy_plugin.py @@ -233,7 +233,9 @@ class DeployPlugin(cliapp.Plugin): self.app.status(msg='Running extension %(name)s%(kind)s', name=name, kind=kind) self.app.runcmd( - [ext_filename] + args, env=env, stdout=None, stderr=None) + [ext_filename] + args, + ['bash', '-c', 'while read l; do echo `date "+%F %T"` $l; done'], + env=env, stdout=None, stderr=None) if delete_ext: os.remove(ext_filename) |