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/07/05 15:54:10 UTC

[3/5] git commit: LIBCLOUD-357: Modified ElasticHosts to store drive UUID in 'extra' field.

LIBCLOUD-357: Modified ElasticHosts to store drive UUID in 'extra' field.

Signed-off-by: Tomaz Muraus <to...@apache.org>


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

Branch: refs/heads/trunk
Commit: 8465e2976b1f57e234b65c50ec12afe6a2e9a91a
Parents: 3bc2f69
Author: Bob Thompson <bo...@gmail.com>
Authored: Wed Jul 3 11:22:02 2013 -0400
Committer: Tomaz Muraus <to...@apache.org>
Committed: Fri Jul 5 15:26:16 2013 +0200

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/8465e297/libcloud/compute/drivers/elasticstack.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/elasticstack.py b/libcloud/compute/drivers/elasticstack.py
index 7058dbd..b957614 100644
--- a/libcloud/compute/drivers/elasticstack.py
+++ b/libcloud/compute/drivers/elasticstack.py
@@ -469,6 +469,14 @@ class ElasticStackBaseNodeDriver(NodeDriver):
         if 'vnc:password' in data:
             extra['vnc:password'] = data['vnc:password']
 
+        boot_device = data['boot']
+
+        if isinstance(boot_device, list):
+            for device in boot_device:
+                extra[device] = data[device]
+        else:
+            extra[boot_device] = data[boot_device]
+
         if ssh_password:
             extra.update({'password': ssh_password})