Skip to content

Commit 73feb55

Browse files
committed
[DOP-26758] Fix manage_users missing args
1 parent 92ab61f commit 73feb55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

syncmaster/server/scripts/manage_superusers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ async def main(args: argparse.Namespace, session: AsyncSession) -> None:
121121
SessionLocal = async_sessionmaker(autocommit=False, autoflush=False, bind=engine, class_=AsyncSession)
122122
parser = create_parser()
123123
args = parser.parse_args()
124-
if not args.usernames:
124+
125+
if args.command == "add" and not args.usernames:
125126
args.usernames = settings.superusers
126127

127128
session = SessionLocal()

0 commit comments

Comments
 (0)