condensing python code in utils check_credentials
authorDan Radez <dradez@redhat.com>
Mon, 7 Dec 2015 19:04:55 +0000 (14:04 -0500)
committerDan Radez <dradez@redhat.com>
Mon, 7 Dec 2015 19:06:03 +0000 (14:06 -0500)
commit2e6774462537a69be83e4ebdb8c574359163b071
tree0b452e474e1fb7818349f71d4204e00f0ad53938
parent8ed8590b49bb429b7160c45bf06518fd494e9765
condensing python code in utils check_credentials

comment said:
TODO: there must be a short way to do this
doing if os.environ["something"] == "" throws an error

This does the same thing removing the try catches using conditionals and list functions

Change-Id: I614e0aa49ab62aeeb738bdd36ef55452d585d8fb
Signed-off-by: Dan Radez <dradez@redhat.com>
testcases/functest_utils.py