Merge pull request #8 from scottwallacesh/master

Fix a typo to resolve #6
This commit is contained in:
Joao Jacome 2021-05-10 20:02:00 +01:00 committed by GitHub
commit aa36e5cade
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -210,7 +210,7 @@ def add_ssh_keys(session, items, keyname):
logging.debug('Private key ID found') logging.debug('Private key ID found')
if not ssh_add(session, item['id'], private_key_id): if not ssh_add(session, item['id'], private_key_id):
logging.warning('Could not add key to the SSD agent') logging.warning('Could not add key to the SSH agent')
def ssh_add(session, item_id, key_id): def ssh_add(session, item_id, key_id):
@ -220,7 +220,7 @@ def ssh_add(session, item_id, key_id):
logging.debug('Item ID: %s', item_id) logging.debug('Item ID: %s', item_id)
logging.debug('Key ID: %s', key_id) logging.debug('Key ID: %s', key_id)
# TODO: avoid temporary files, if possible # FIXME: avoid temporary files, if possible (StringIO ?)
with tempfile.NamedTemporaryFile() as tmpfile: with tempfile.NamedTemporaryFile() as tmpfile:
proc = subprocess.Popen( proc = subprocess.Popen(
list(filter(None, [ list(filter(None, [