Accepts wildcard hosts in ssh config

Bug #1005889 reported by Andy Smith on 2012-05-29
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-sshsearch-lens
Medium
Bernd Schlapsi

Bug Description

Although the code checks for a host that is simply "*" and skips it, it still accepts hosts like "*.mylan" which are valid entries in ~/.ssh/config but useless for this lens.

Andy Smith (grifferz) wrote :

self._config_hosts = [h['host'].lower() for h in c._config if not '*' in h['host']]

seems to work for me.

Changed in unity-sshsearch-lens:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Bernd Schlapsi (bernd-sch)
Changed in unity-sshsearch-lens:
status: Confirmed → Fix Committed
Bernd Schlapsi (bernd-sch) wrote :

The update is already available through one of the ppa's for precise. I did't correct the oneiric-version yet.
https://code.launchpad.net/~scopes-packagers/+archive/ppa
https://code.launchpad.net/~bernd-sch/+archive/unity-sshsearch-lens

I'm still waiting for the review process to get my lens into the official Ubuntu Software Center. But now I have to upload the new version again.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers