libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Syed Ahmed (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LIBCLOUD-706) listing projects in cloudstack results in an exception
Date Thu, 07 May 2015 04:58:00 GMT
Syed Ahmed created LIBCLOUD-706:
-----------------------------------

             Summary: listing projects in cloudstack results in an exception
                 Key: LIBCLOUD-706
                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-706
             Project: Libcloud
          Issue Type: Bug
         Environment: master
            Reporter: Syed Ahmed


calling `ex_list_projects()` lists in an exception for some cases where the value of an item
in the dictionary is 'Unlimited' instead of int. 

The following exception is thrown 

ValueError: invalid literal for int() with base 10: 'Unlimited'

This is due to the return value from the listProjects call returning 'primarystoragelimit':
'Unlimited' 

We need to have a beter convert function which takes care if the 'Unlimited' case (returns
-1 if unlimited?) 





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message