summaryrefslogtreecommitdiff
path: root/cloudinit/distros/__init__.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-09-24 17:13:38 -0400
committerScott Moser <smoser@ubuntu.com>2012-09-24 17:13:38 -0400
commit70cc7536f45a8d7052617ad88e2816291db0a309 (patch)
treef702fe609bd001b45c48ef1c5f06b19c9c55babf /cloudinit/distros/__init__.py
parente3b29659672acd757122bc5f90a13670b96b6952 (diff)
downloadvyos-cloud-init-70cc7536f45a8d7052617ad88e2816291db0a309.tar.gz
vyos-cloud-init-70cc7536f45a8d7052617ad88e2816291db0a309.zip
DataSourceMAAS: if a oauth request fails due to 403 try updating local time
In the event of a 403 (Unauthorized) in oauth, try set a 'oauth_clockskew' variable. In future headers, use a time created by 'time.time() + self.oauth_clockskew'. The idea here is that if the local time is bad (or even if the server time is bad) we will essentially use something that should be similar to the remote clock. This fixes LP: #978127. LP: #978127
Diffstat (limited to 'cloudinit/distros/__init__.py')
0 files changed, 0 insertions, 0 deletions