Skip to content

Commit cee7255

Browse files
committed
fixed delete users
1 parent 6dc5616 commit cee7255

File tree

5 files changed

+1
-2
lines changed

5 files changed

+1
-2
lines changed
28 Bytes
Binary file not shown.
28 Bytes
Binary file not shown.
-107 Bytes
Binary file not shown.
28 Bytes
Binary file not shown.

main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,14 @@
3838
elif digit == '2':
3939
while True:
4040
uuids = ssh_connection.find_users(ssh)
41-
print("Enter the user number to delete or type 'exit'")
41+
print("Введите номер пользователя или напишите exit, чтобы выйти в меню'")
4242
digit = input()
4343
if digit.lower() == 'exit':
4444
break
4545
try:
4646
digit_int = int(digit)
4747
if 1 <= digit_int <= len(uuids):
4848
ssh_connection.delete_user(ssh, digit_int, uuids)
49-
break # Exit after deletion
5049
else:
5150
print("No user with this number exists")
5251
except ValueError:

0 commit comments

Comments
 (0)