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

ASF GitHub Bot commented on LIBCLOUD-982:
-----------------------------------------

Github user sjain-rvbd closed the pull request at:

    https://github.com/apache/libcloud/pull/1199


> Packet _to_size() KeyError data['pricing']['hourly']
> ----------------------------------------------------
>
>                 Key: LIBCLOUD-982
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-982
>             Project: Libcloud
>          Issue Type: Bug
>            Reporter: Nick Allen
>            Priority: Major
>
> Looks like a typo in the PacketNodeDriver._to_size() method. 
> It's looking for data['pricing']['hourly'], when it's actually stored as 
> data['pricing']['hour']. 
> {code:java}
> File 
> "/Users/nick/.pyenv/versions/2.7.10/envs/bundles-2.7.10/lib/python2.7/site-packages/libcloud/compute/drivers/packet.py",
>  line 96, in list_nodes return list(map(self._to_node, data)) File 
> "/Users/nick/.pyenv/versions/2.7.10/envs/bundles-2.7.10/lib/python2.7/site-packages/libcloud/compute/drivers/packet.py",
>  line 198, in _to_node size = self._to_size(data['plan']) File 
> "/Users/nick/.pyenv/versions/2.7.10/envs/bundles-2.7.10/lib/python2.7/site-packages/libcloud/compute/drivers/packet.py",
>  line 233, in _to_size price = data['pricing']['hourly'] KeyError: 'hourly'
> {code}



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

Reply via email to