~ubuntu-branches/ubuntu/quantal/cloud-init/quantal

« back to all changes in this revision

Viewing changes to cloudinit/sources/DataSourceMAAS.py

  • Committer: Package Import Robot
  • Author(s): Scott Moser
  • Date: 2012-10-01 14:19:46 UTC
  • Revision ID: package-import@ubuntu.com-20121001141946-5z412gf8s1xu38oz
* New upstream release.
  * minor change to oauth header fix (LP: #978127).
  * incorporation of 0.7.0 upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
 
146
146
    def _except_cb(self, msg, exception):
147
147
        if not (isinstance(exception, urllib2.HTTPError) and
148
 
                exception.code == 403):
 
148
                (exception.code == 403 or exception.code == 401)):
149
149
            return
150
150
        if 'date' not in exception.headers:
151
 
            LOG.warn("date field not in 403 headers")
 
151
            LOG.warn("date field not in %d headers" % exception.code)
152
152
            return
153
153
 
154
154
        date = exception.headers['date']