libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [1/3] git commit: LIBCLOUD-357: Modified ElasticHosts to store drive UUID in 'extra' field.
Date Fri, 05 Jul 2013 13:54:20 GMT
Updated Branches:
  refs/heads/0.13.x [created] 5e481e061


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

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


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

Branch: refs/heads/0.13.x
Commit: a8e473d2aac6e06b027afc6cb861aae0e8cf3685
Parents: 9c0d11a
Author: Bob Thompson <bob.thompson8080@gmail.com>
Authored: Wed Jul 3 11:22:02 2013 -0400
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Fri Jul 5 15:46:28 2013 +0200

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/a8e473d2/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})
 


Mime
View raw message