def do_refresh_ssh(_): """ Regenerate the user key files. :arg _: the argparse object returned by ``parse_arguments()``, which is ignored as there are no argument to pass to this action. """ print("Do you want to re-generate all the ssh keys for every user in " "the database? (Depending on your instance this may take a while " "and result in an outage while it lasts)") if _ask_confirmation(): generate_user_key_files() print("User key files regenerated") do_generate_acl()
def do_refresh_ssh(_): """ Regenerate the user key files. :arg _: the argparse object returned by ``parse_arguments()``, which is ignored as there are no argument to pass to this action. """ print( "Do you want to re-generate all the ssh keys for every user in " "the database? (Depending on your instance this may take a while " "and result in an outage while it lasts)" ) if _ask_confirmation(): generate_user_key_files() print("User key files regenerated") do_generate_acl()