commit 6b6f210e3eaab7b2ca8febff1f51f66bbf6fee1d
Author: Neil Wilson <neil@aldur.co.uk>
Date:   Tue Apr 10 16:06:47 2012 +0100

    brightbox.py: Fix deploy facility
    
    Add 'ssh_key' feature to brightbox drives so that deploy_node works.

diff --git a/libcloud/compute/drivers/brightbox.py b/libcloud/compute/drivers/brightbox.py
index 9aa3e47..b51e694 100644
--- a/libcloud/compute/drivers/brightbox.py
+++ b/libcloud/compute/drivers/brightbox.py
@@ -44,6 +44,8 @@ class BrightboxNodeDriver(NodeDriver):
                       'failed': NodeState.UNKNOWN,
                       'unavailable': NodeState.UNKNOWN}
 
+    features = {'create_node': ['ssh_key']}
+
     def _to_node(self, data):
         return Node(
             id=data['id'],
diff --git a/test/compute/test_brightbox.py b/test/compute/test_brightbox.py
index 6964d92..ba1fd41 100644
--- a/test/compute/test_brightbox.py
+++ b/test/compute/test_brightbox.py
@@ -80,6 +80,8 @@ class BrightboxTest(unittest.TestCase, TestCaseMixin):
         self.assertEqual('srv-3a97e', node.id)
         self.assertEqual('Test Node', node.name)
 
+    def test_create_node_features(self):
+        self.assertEqual(self.driver.features, {'create_node': ['ssh_key']})
 
 class BrightboxMockHttp(MockHttp):
     fixtures = ComputeFileFixtures('brightbox')
