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 <[email protected]> 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 <[email protected]> Authored: Wed Jul 3 11:22:02 2013 -0400 Committer: Tomaz Muraus <[email protected]> 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})
