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/64181eb2 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/64181eb2 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/64181eb2 Branch: refs/heads/0.13.2 Commit: 64181eb27b00264211c5580b0471bc07360ebb27 Parents: abacf9c Author: Bob Thompson <[email protected]> Authored: Wed Jul 3 11:22:02 2013 -0400 Committer: Tomaz Muraus <[email protected]> Committed: Fri Sep 13 15:19:30 2013 +0200 ---------------------------------------------------------------------- libcloud/compute/drivers/elasticstack.py | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/64181eb2/libcloud/compute/drivers/elasticstack.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/elasticstack.py b/libcloud/compute/drivers/elasticstack.py index e70a04f..603fdf7 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})
