]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Send 50% less debug information when executing cmd
authorJohn Schwarz <jschwarz@redhat.com>
Thu, 12 Nov 2015 14:05:19 +0000 (16:05 +0200)
committerJohn Schwarz <jschwarz@redhat.com>
Thu, 19 Nov 2015 11:31:55 +0000 (13:31 +0200)
commit5d3dc68d7e6c958777ac0c4241371fd47eefb081
treebb6f3035023e8493d3818966706af0cb7fe73bfd
parentabb73191ae9fe852e5cb93e0cfa3bd54967c4c52
Send 50% less debug information when executing cmd

The current code prints out the command it runs twice: once in
'create_process' or 'execute_rootwrap_daemon', and once after the
command has finished executing and a return code is returned. Since this
is synchronous, there is no need to print the command twice in a row, so
this patch deletes the latter one, leaving only the exit code to be
printed.

This patch also refactors the surrounding code to make it more readable.

Change-Id: I22289f838dbc3956a777a78c882e4d5f1e725d0e
neutron/agent/linux/utils.py