Upgrading from 0.6.x
Changes
- For consistency,
public_ip
andprivate_ip
attribute on theNode
object have been renamed topublic_ips
andprivate_ips
respectively.
In 0.7 you can still access those attributes using the old way, but this option will be removed in the next major release.
Note: If you have places in your code where you directly instantiate a Node
class, you need to update it.
Old code:
node = Node(id='1', name='test node', state=NodeState.PENDING, private_ip=['10.0.0.1'], public_ip=['88.77.66.77'], driver=driver)
Updated code:
node = Node(id='1', name='test node', state=NodeState.PENDING, private_ips=['10.0.0.1'], public_ips=['88.77.66.77'], driver=driver)
- Old deprecated paths have been removed. If you still haven't updated your code you need to do it now, otherwise it won't work with 0.7 and future releases.
Bellow is a list of old paths and their new locations:
libcloud.base
->libcloud.compute.base
libcloud.deployment
->libcloud.compute.deployment
libcloud.drivers.*
->libcloud.compute.drivers.*
libcloud.ssh
->libcloud.compute.ssh
libcloud.types
->libcloud.compute.types
libcloud.providers
->libcloud.compute.providers
In the contrib directory you can also find a simple bash script which can perform a search and replace for you - migrate_paths.py.