Don't generate clientId twice

We already generate and store the client ID in self.client_id, so
no need to re-generate it in refresh_validate().
This commit is contained in:
Tor Arne Vestbø 2016-01-07 20:23:49 +01:00
parent d2bbf7dee5
commit 5e41650d50

View file

@ -92,10 +92,9 @@ class PyiCloudService(object):
)
self.params.update({'id': sha.hexdigest().upper()})
clientId = str(uuid.uuid1()).upper()
self.params.update({
'clientBuildNumber': '14E45',
'clientId': clientId,
'clientId': self.client_id,
})
def authenticate(self):