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)

Reply via email to