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 2019/06/28 17:25:50 UTC

[libcloud] 02/07: Remove default value for required argument.

This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 3a9ef1f2ba89b77f61a7791681edd60661364fc6
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Jun 28 19:06:16 2019 +0200

    Remove default value for required argument.
---
 libcloud/compute/drivers/maxihost.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libcloud/compute/drivers/maxihost.py b/libcloud/compute/drivers/maxihost.py
index 28cc3c0..8f3756b 100644
--- a/libcloud/compute/drivers/maxihost.py
+++ b/libcloud/compute/drivers/maxihost.py
@@ -190,14 +190,14 @@ class MaxihostNodeDriver(NodeDriver):
         data = self.connection.request('/account/keys')
         return list(map(self._to_key_pair, data.object['ssh_keys']))
 
-    def create_key_pair(self, name, public_key=''):
+    def create_key_pair(self, name, public_key):
         """
         Create a new SSH key.
 
         :param      name: Key name (required)
         :type       name: ``str``
 
-        :param      public_key: Valid public key string (required)
+        :param      public_key: base64 encoded public key string (required)
         :type       public_key: ``str``
         """
         attr = {'name': name, 'public_key': public_key}