helper method for setting install type

So it could be used independently in tests
Also threw in a small addition to cleanup to try and
fix the terminal not echoing.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
move up the install_only exist before running openstack-status

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
strip off newlines from container_run output

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>