mirror of
https://github.com/ansible/awx.git
synced 2026-03-19 01:47:31 -02:30
catch python error when unable to find user
This commit is contained in:
@@ -267,7 +267,10 @@ TEST_SVN_PRIVATE_HTTPS = 'https://github.com/ansible/product-docs'
|
|||||||
|
|
||||||
# To test repo access via SSH login to localhost.
|
# To test repo access via SSH login to localhost.
|
||||||
import getpass
|
import getpass
|
||||||
TEST_SSH_LOOPBACK_USERNAME = getpass.getuser()
|
try:
|
||||||
|
TEST_SSH_LOOPBACK_USERNAME = getpass.getuser()
|
||||||
|
except KeyError:
|
||||||
|
TEST_SSH_LOOPBACK_USERNAME = 'root'
|
||||||
TEST_SSH_LOOPBACK_PASSWORD = ''
|
TEST_SSH_LOOPBACK_PASSWORD = ''
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user