~james-page/ubuntu/wily/juju-core/mir-fixes

« back to all changes in this revision

Viewing changes to src/launchpad.net/juju-core/utils/ssh/authorisedkeys.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-04-07 18:24:59 UTC
  • mfrom: (1.1.22)
  • Revision ID: package-import@ubuntu.com-20140407182459-1b6zvm5ygm4ki7yp
Tags: 1.18.0-0ubuntu1
* New upstream release (LP: #1287147), including fixes for:
  - maas/lxc: LXC permission denied issue (LP: #1299588).
  - core: mega-watcher for machines does not include container
    addresses (LP: #1301464).

Show diffs side-by-side

added added

removed removed

Lines of Context:
264
264
                        existingNonKeyLines = append(existingNonKeyLines, line)
265
265
                }
266
266
        }
267
 
        for _, newKey := range newKeys {
268
 
                _, comment, err := KeyFingerprint(newKey)
269
 
                if err != nil {
270
 
                        return err
271
 
                }
272
 
                if comment == "" {
273
 
                        return fmt.Errorf("cannot add ssh key without comment")
274
 
                }
275
 
        }
276
267
        return writeAuthorisedKeys(user, append(existingNonKeyLines, newKeys...))
277
268
}
278
269