Set default SSH_AUTH_SOCK in zuul-bwrap command
The zuul-bwrap command is useful for debugging things under the zuul bwrap environment. Unfortunately, the way things are written it assumes there will be an SSH_AUTH_SOCK. For much debugging you might manually do in this environment an SSH_AUTH_SOCK is unnecessary. Instead of throwing a obtuse error simply set the value to /dev/null if not otherwise set. Change-Id: Iec0ee93c6e6b1b647a27c9a7fdf280d14d5d2596
This commit is contained in:
parent
0f5bf43e04
commit
4ea5c621b9
@ -239,7 +239,9 @@ def main(args=None):
|
||||
parser.add_argument('run_args', nargs='+')
|
||||
cli_args = parser.parse_args()
|
||||
|
||||
ssh_auth_sock = os.environ.get('SSH_AUTH_SOCK')
|
||||
# The zuul-bwrap command is often run for debugging purposes. An SSH
|
||||
# agent may not be necessary or present in that situation.
|
||||
ssh_auth_sock = os.environ.get('SSH_AUTH_SOCK', '/dev/null')
|
||||
|
||||
secrets = {}
|
||||
if cli_args.secret:
|
||||
|
Loading…
x
Reference in New Issue
Block a user