You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2017/04/01 01:02:01 UTC

[1/3] libcloud git commit: Cloudscale Driver: Make it possible to list all things in the API that are not part of libcloud.

Repository: libcloud
Updated Branches:
  refs/heads/trunk 17fe85b04 -> 452fd39c4


Cloudscale Driver: Make it possible to list all things in the API that are not part of libcloud.

We have had some issues where we added stuff like host keys to our api. This should be reflected in Libcloud.


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

Branch: refs/heads/trunk
Commit: 7c474fd52c329de1acf34f0163b79504993c7c3f
Parents: 17fe85b
Author: Dave Halter <da...@gmail.com>
Authored: Fri Feb 24 13:12:11 2017 +0100
Committer: Anthony Shaw <an...@apache.org>
Committed: Sat Apr 1 12:01:01 2017 +1100

----------------------------------------------------------------------
 libcloud/compute/drivers/cloudscale.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/7c474fd5/libcloud/compute/drivers/cloudscale.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/cloudscale.py b/libcloud/compute/drivers/cloudscale.py
index 98034ec..1023b22 100644
--- a/libcloud/compute/drivers/cloudscale.py
+++ b/libcloud/compute/drivers/cloudscale.py
@@ -203,11 +203,11 @@ class CloudscaleNodeDriver(NodeDriver):
 
     def _to_node(self, data):
         state = self.NODE_STATE_MAP.get(data['status'], NodeState.UNKNOWN)
-        extra_keys = ['volumes', 'interfaces', 'anti_affinity_with']
+        extra_keys_exclude = ['uuid', 'name', 'status', 'flavor', 'image']
         extra = {}
-        for key in extra_keys:
-            if key in data:
-                extra[key] = data[key]
+        for k, v in data.items():
+            if k not in extra_keys_exclude:
+                extra[k] = v
 
         public_ips = []
         private_ips = []


[3/3] libcloud git commit: changes for #993

Posted by an...@apache.org.
changes for #993


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

Branch: refs/heads/trunk
Commit: 452fd39c49cd3e756b597dff025fafcbc728d1ed
Parents: 43739fa
Author: Anthony Shaw <an...@apache.org>
Authored: Sat Apr 1 12:01:55 2017 +1100
Committer: Anthony Shaw <an...@apache.org>
Committed: Sat Apr 1 12:01:55 2017 +1100

----------------------------------------------------------------------
 CHANGES.rst | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/452fd39c/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index 21c8d42..56e4bd1 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -5,6 +5,13 @@
 Changes in latest version of Apache Libcloud
 --------------------------------------------
 
+Common
+~~~~~~
+
+- Change Cloudscale to cloudscale.ch.
+  [GITHUB-993]
+  (David Halter)
+
 Compute
 ~~~~~~~
 


[2/3] libcloud git commit: Change Cloudscale to cloudscale.ch.

Posted by an...@apache.org.
Change Cloudscale to cloudscale.ch.

This was not consistent in the libcloud documentation.
Closes #993


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

Branch: refs/heads/trunk
Commit: 43739fa5b0f429eac04a147a5b826de185840a89
Parents: 7c474fd
Author: Dave Halter <da...@gmail.com>
Authored: Fri Feb 24 13:32:32 2017 +0100
Committer: Anthony Shaw <an...@apache.org>
Committed: Sat Apr 1 12:01:06 2017 +1100

----------------------------------------------------------------------
 docs/compute/_supported_providers.rst | 4 ++--
 docs/compute/drivers/cloudscale.rst   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/43739fa5/docs/compute/_supported_providers.rst
----------------------------------------------------------------------
diff --git a/docs/compute/_supported_providers.rst b/docs/compute/_supported_providers.rst
index b1e5f92..ca89026 100644
--- a/docs/compute/_supported_providers.rst
+++ b/docs/compute/_supported_providers.rst
@@ -11,7 +11,7 @@ Provider                              Documentation
 `Bluebox Blocks`_                                                                       BLUEBOX             single region driver                                                                                                                                                      :mod:`libcloud.compute.drivers.bluebox`           :class:`BlueboxNodeDriver`          
 `Brightbox`_                                                                            BRIGHTBOX           single region driver                                                                                                                                                      :mod:`libcloud.compute.drivers.brightbox`         :class:`BrightboxNodeDriver`        
 `BSNL`_                               :doc:`Click </compute/drivers/bsnl>`              BSNL                single region driver                                                                                                                                                      :mod:`libcloud.compute.drivers.bsnl`              :class:`BSNLNodeDriver`             
-`Cloudscale`_                         :doc:`Click </compute/drivers/cloudscale>`        CLOUDSCALE          single region driver                                                                                                                                                      :mod:`libcloud.compute.drivers.cloudscale`        :class:`CloudscaleNodeDriver`       
+`cloudscale.ch`_                      :doc:`Click </compute/drivers/cloudscale>`        CLOUDSCALE          single region driver                                                                                                                                                      :mod:`libcloud.compute.drivers.cloudscale`        :class:`CloudscaleNodeDriver`       
 `CloudSigma (API v2.0)`_              :doc:`Click </compute/drivers/cloudsigma>`        CLOUDSIGMA          single region driver                                                                                                                                                      :mod:`libcloud.compute.drivers.cloudsigma`        :class:`CloudSigmaNodeDriver`       
 `CloudStack`_                         :doc:`Click </compute/drivers/cloudstack>`        CLOUDSTACK          single region driver                                                                                                                                                      :mod:`libcloud.compute.drivers.cloudstack`        :class:`CloudStackNodeDriver`       
 `Cloudwatt`_                          :doc:`Click </compute/drivers/cloudwatt>`         CLOUDWATT           single region driver                                                                                                                                                      :mod:`libcloud.compute.drivers.cloudwatt`         :class:`CloudwattNodeDriver`        
@@ -69,7 +69,7 @@ Provider                              Documentation
 .. _`Bluebox Blocks`: http://bluebox.net
 .. _`Brightbox`: http://www.brightbox.co.uk/
 .. _`BSNL`: http://www.bsnlcloud.com/
-.. _`Cloudscale`: https://www.cloudscale.ch
+.. _`cloudscale.ch`: https://www.cloudscale.ch
 .. _`CloudSigma (API v2.0)`: http://www.cloudsigma.com/
 .. _`CloudStack`: http://cloudstack.org/
 .. _`Cloudwatt`: https://www.cloudwatt.com/

http://git-wip-us.apache.org/repos/asf/libcloud/blob/43739fa5/docs/compute/drivers/cloudscale.rst
----------------------------------------------------------------------
diff --git a/docs/compute/drivers/cloudscale.rst b/docs/compute/drivers/cloudscale.rst
index 2f3bc79..9e53d2c 100644
--- a/docs/compute/drivers/cloudscale.rst
+++ b/docs/compute/drivers/cloudscale.rst
@@ -1,5 +1,5 @@
-Cloudscale Compute Driver Documentation
-=======================================
+cloudscale.ch Compute Driver Documentation
+==========================================
 
 `cloudscale.ch`_ is a public cloud provider based in Switzerland.