~therve/cloud-init/landscape-conf-permissions

Viewing all changes in revision 678.

  • Committer: Scott Moser
  • Date: 2012-10-01 15:50:48 UTC
  • Revision ID: smoser@ubuntu.com-20121001155048-2j4fkz9pyf2h62k3
fix oauth time skew. actual implementation was returning 401 not 403.

This fixes (tested) bug 978127.  The server was actually returning a 401
not a 403.  As such, the fix here was insufficient.  This will now take
either of those 2 error codes.  I've also tested it by changing the clock
in the cloud-init upstart job with a stanza like below, and verifying
that we do see the problem and then it resolve itself:

  pre-start script
    offset="10 minutes ago"
    past=$(date -R --date "$offset")
    date --set "$past" &&
      echo ===== "set date to $past [$offset]" ===== ||
      echo ===== "failed to set date to $past [$offset]" ====
  end script

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: