[ 
https://issues.apache.org/jira/browse/LIBCLOUD-1040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16848494#comment-16848494
 ] 

ASF subversion and git services commented on LIBCLOUD-1040:
-----------------------------------------------------------

Commit 46b9efb09a56f873a902f26a521868e16d8a7738 in libcloud's branch 
refs/heads/trunk from Tomaz Muraus
[ https://gitbox.apache.org/repos/asf?p=libcloud.git;h=46b9efb ]

Merge branch 
'LIBCLOUD-1040_CloudSigma_provider_ex_list_subscriptions_fails_if_your_subscription_includes_free_tier_resources'
 of https://github.com/aki-k/libcloud into 
LIBCLOUD-1040_CloudSigma_provider_ex_list_subscriptions_fails_if_your_subscription_includes_free_tier_resources


> CloudSigma provider ex_list_subscriptions() fails if your subscription 
> includes free tier resources
> ---------------------------------------------------------------------------------------------------
>
>                 Key: LIBCLOUD-1040
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-1040
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Compute
>    Affects Versions: 2.4.0
>         Environment: CentOS 6.10
> python 3.5.2
>  
>            Reporter: Aki Ketolainen
>            Priority: Minor
>              Labels: easyfix
>
> When using driver.ex_list_subscriptions(status='all', resources=None) to list 
> your resources, you'll receive the error:
>   File 
> "/sw/libcloud/2.4.0/lib/python3.5/site-packages/libcloud/utils/iso8601.py", 
> line 117, in parse_date
>     m = ISO8601_REGEX.match(datestring)
> TypeError: expected string or bytes-like object
> CloudSigma gave some free resources to their customers a few years ago.
> <CloudSigmaSubscription id=free_mem, resource=mem, amount=1073741824, 
> period=None, object_uuid=None>
> <CloudSigmaSubscription id=free_dssd, resource=dssd, amount=53687091200, 
> period=None, object_uuid=None>
> I suspect these are the problem resources with no end time.
> I've added to iso8601.py on lines 117 and 118:
>     if datestring is None:
>         datestring = "9999-01-01T12:00:00+00:00"
> Not sure if this is an appropriate fix but seems to fix it.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to