string indices must be integers

Bug #1397332 reported by Andres Riancho on 2014-11-28
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dustin Kirkland 

Bug Description

I'm running ssh-import-id inside a Dockerfile , it runs without issues 9 out of 10 times, but sometimes it fails with:

ssh-import-id gh:andresriancho -o /home/docker/.ssh/authorized_keys
ERROR: string indices must be integers
2014-11-28 14:14:47,355 ERROR Error executing protocol helper [/usr/local/bin/ssh-import-id-gh]

Any ideas on how to fix this?

Related branches

Andres Riancho (andres-riancho) wrote :

Attaching an improved version of the github importer which "fixes" the bug I reported a while ago.

The change incorporates two basic changes:
 * Better error handling for the case where the user does not exist
 * Better error handling for github rate limiting (which was the reason my script was failing)

Feel free to merge this into master

Changed in ssh-import-id:
importance: Undecided → Medium
Dustin Kirkland  (kirkland) wrote :

Thanks for that! Looks good. Merged into master.

Changed in ssh-import-id:
status: New → In Progress
assignee: nobody → Dustin Kirkland  (kirkland)
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments