You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2013/10/17 22:10:38 UTC

[02/16] git commit: docs: Update upgrade notes.

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 <to...@apache.org>
Authored: Thu Oct 17 19:58:36 2013 +0200
Committer: Tomaz Muraus <to...@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
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~