string indices must be integers

Bug #1397332 reported by Andres Riancho
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ssh-import-id
Fix Released
Medium
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

Revision history for this message
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
Revision history for this message
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
Revision history for this message
Scott Moser (smoser) wrote :

This bug is fixed in the 5.8 release.

Changed in ssh-import-id:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.