Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace raw_input() with input() #2803 #2804

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/rockstor/scripts/ovpn_util.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Copyright (c) 2012-2020 RockStor, Inc. <http://rockstor.com>
Copyright (c) 2012-2024 RockStor, Inc. <http://rockstor.com>
This file is part of RockStor.

RockStor is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -31,14 +31,14 @@ def initpki():


def client_gen():
client_name = raw_input("Enter a name for the client(no spaces): ") # noqa F821
client_name = input("Enter a name for the client(no spaces): ") # noqa F821
os.system(
"%s -it %s easyrsa build-client-full %s nopass" % (CMD, image, client_name)
)


def client_retrieve():
client_name = raw_input(
client_name = input(
"Enter the name of the client you like to retrieve: "
) # noqa F821 E501
outfile = "/tmp/%s.ovpn" % client_name
Expand Down