Skip to content

Commit

Permalink
Replace raw_input() with input()
Browse files Browse the repository at this point in the history
  • Loading branch information
Hooverdan96 authored Feb 26, 2024
1 parent 6c86e38 commit 6e0d132
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 6e0d132

Please sign in to comment.