libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [02/16] git commit: docs: Update upgrade notes.
Date Thu, 17 Oct 2013 20:10:38 GMT
docs: Update upgrade notes.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/090bb02c
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/090bb02c
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/090bb02c

Branch: refs/heads/trunk
Commit: 090bb02c6197cc3857112af3030e0dba7bce99b9
Parents: 66386bc
Author: Tomaz Muraus <tomaz@apache.org>
Authored: Thu Oct 17 19:58:36 2013 +0200
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Thu Oct 17 19:58:36 2013 +0200

----------------------------------------------------------------------
 docs/upgrade_notes.rst | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/090bb02c/docs/upgrade_notes.rst
----------------------------------------------------------------------
diff --git a/docs/upgrade_notes.rst b/docs/upgrade_notes.rst
index ad7e4c0..fab3e35 100644
--- a/docs/upgrade_notes.rst
+++ b/docs/upgrade_notes.rst
@@ -199,6 +199,37 @@ more pleasant to use. Backward incompatible changes are listed bellow:
   ``image``, ``location`` plus ``ex_keyname``, ``ex_userdata``,
   ``ex_security_groups`` and ``networks``.
 
+Joyent compute driver changes
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Joyent driver has been aligned with other drivers and now the constructor takes
+``region`` instead of ``location`` argument.
+
+For backward compatibility reasons, old argument will continue to work until the
+next major release.
+
+Old code:
+
+.. sourcecode:: python
+
+    from libcloud.compute.types import Provider
+    from libcloud.compute.providers import get_driver
+
+    cls = get_driver(Provider.JOYENT)
+
+    driver = cls('username', 'api_key', location='us-east-1')
+
+Old code:
+
+.. sourcecode:: python
+
+    from libcloud.compute.types import Provider
+    from libcloud.compute.providers import get_driver
+
+    cls = get_driver(Provider.JOYENT)
+
+    driver = cls('username', 'api_key', region='us-east-1')
+
 Unification of extension arguments for security group handling in the EC2 driver
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 


Mime
View raw message