Internal func _log_error_and_exit & _request_post 88/13288/11
authorBengt Thuree <bthuree@linuxfoundation.org>
Fri, 2 Nov 2018 00:51:38 +0000 (11:51 +1100)
committerBengt Thuree <bthuree@linuxfoundation.org>
Wed, 7 Nov 2018 05:12:25 +0000 (16:12 +1100)
commita5ae1bb42bf60aa4674c244b4ca6e161658ebfba
treee1d9fd3080c16523eca18a1726801631269b0f9f
parent4a28d2706b5efae1b47cd9bc9a96f8c56b3b8a09
Internal func _log_error_and_exit & _request_post

Adds two internal functions
_log_error_and_exist : prints out 0, 1 or 2 lines of text
                       and then exit with sys.exit(1)

_request_post        : This is a wrapper around request.post
                       Handles three exceptions
                         ConnectionError, MissingSchema, InvalidURL

Change-Id: If8a4d20054d958cbfb3ab651eae037a124420bd3
Signed-off-by: Bengt Thuree <bthuree@linuxfoundation.org>
lftools/deploy.py
requirements-test.txt
tests/test_deploy.py