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 2016/10/08 02:30:40 UTC

[09/27] libcloud git commit: extra contains entire json resp

extra contains entire json resp


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

Branch: refs/heads/trunk
Commit: ce9131069f9dae62d8e7cba24ac8c08b6869d6fe
Parents: d6590e9
Author: Mario Loria <ma...@arroyonetworks.com>
Authored: Thu Sep 29 11:12:54 2016 -0400
Committer: Anthony Shaw <an...@apache.org>
Committed: Sat Oct 8 13:29:22 2016 +1100

----------------------------------------------------------------------
 libcloud/container/drivers/rancher.py | 28 ++--------------------------
 1 file changed, 2 insertions(+), 26 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/ce913106/libcloud/container/drivers/rancher.py
----------------------------------------------------------------------
diff --git a/libcloud/container/drivers/rancher.py b/libcloud/container/drivers/rancher.py
index 261f9f8..e0395e1 100644
--- a/libcloud/container/drivers/rancher.py
+++ b/libcloud/container/drivers/rancher.py
@@ -1175,32 +1175,8 @@ class RancherContainerDriver(ContainerDriver):
         else:
             state = ContainerState.UNKNOWN
 
-        # Includes the most used items atm. Eventually, everything ;)
-        extra = {
-            "state": rancher_state,
-            "command": data['command'],
-            "created": data['created'],
-            "dataVolumes": data['dataVolumes'],
-            "dns": data['dns'],
-            "dnsSearch": data['dnsSearch'],
-            "domainName": data['domainName'],
-            "entryPoint": data['entryPoint'],
-            "environment": data['environment'],
-            "expose": data['expose'],
-            "healthState": data['healthState'],
-            "hostId": data['hostId'],
-            "hostname": data['hostname'],
-            "labels": data['labels'],
-            "networkMode": data['networkMode'],
-            "ports": data['ports'],
-            "primaryIpAddress": data['primaryIpAddress'],
-            "privileged": data['privileged'],
-            "restartPolicy": data['restartPolicy'],
-            "stdinOpen": data['stdinOpen'],
-            "tty": data['tty'],
-            "uuid": data['uuid'],
-            "workingDir": data['workingDir']
-        }
+        # Everything contained in the json response is dumped in extra
+        extra = data
 
         return Container(
             id=data['id'],