Force expires_on as tick int

Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/dd0e3962
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/dd0e3962
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/dd0e3962

Branch: refs/heads/trunk
Commit: dd0e396246a1305079d6c75e6189e4f70626ac9e
Parents: c705fcf
Author: anthony-shaw <anthonys...@apache.org>
Authored: Thu Apr 14 21:47:32 2016 +1000
Committer: anthony-shaw <anthonys...@apache.org>
Committed: Thu Apr 14 21:47:32 2016 +1000

----------------------------------------------------------------------
 libcloud/common/azure_arm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/dd0e3962/libcloud/common/azure_arm.py
----------------------------------------------------------------------
diff --git a/libcloud/common/azure_arm.py b/libcloud/common/azure_arm.py
index 2611921..0021682 100644
--- a/libcloud/common/azure_arm.py
+++ b/libcloud/common/azure_arm.py
@@ -115,7 +115,7 @@ class 
AzureResourceManagementConnection(ConnectionUserAndKey):
 
         # Log in again if the token has expired or is going to expire soon
         # (next 5 minutes).
-        if (time.time() + 300) >= self.expires_on:
+        if (time.time() + 300) >= int(self.expires_on):
             self.get_token_from_credentials(self)
 
         return super(AzureResourceManagementConnection, self) \

Reply via email to