cwarden/puppet-dropbox — pull request #2 by jakul (2012-11-13 11:14:31+00:00)
Title: Problems authorising with dropbox

I had 2 problems authorising with dropbox:

1. The existing regex wasn't matching the string "Please visit https://www.dropbox.com/cli_link?host_id=c2fd38a8ed4b0374d2ea12ce195d74eb to link this machine." because the host_id was followed by a space, not a &.
2. Sometimes dropbox wouldn't return only "This client is not linked to any account...", without the host id.

I've updated the regex and update the code to expect to receive "This client is not linked to any account..." without the host_id, and to try again if it happens.

I'm using Ubuntu 10.4.