#1942 Added docstring for is_valid_ssh_key and are_valid_ssh_keys
Merged 2 years ago by rishika7000. Opened 2 years ago by rishika7000.
rishika7000/pagure donedone  into  master

file modified
+2

@@ -192,6 +192,7 @@ 

  

  

  def is_valid_ssh_key(key):

+ """ Validates the ssh key using ssh-keygen. """

      key = key.strip()

      if not key:

          return None

@@ -210,6 +211,7 @@ 

  

  

  def are_valid_ssh_keys(keys):

+ """ Checks if all the ssh keys are valid or not. """

      return all([is_valid_ssh_key(key) is not False

                  for key in keys.split('\n')])

  

no initial comment

Looks fine to me, let's rebase and merge :)

rebased

2 years ago

To save you the rebase again, I'm going to merge this one manually, thanks for the PR! :)

Commit 6a9da69 fixes this pull-request

Pull-Request has been merged by rishika7000@gmail.com

2 years ago