Skip to content

Commit

Permalink
fix args passed to InitConnection when no token is found
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansev committed May 11, 2024
1 parent 15c36b5 commit 3ee3aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alienpy/alien.py
Original file line number Diff line number Diff line change
Expand Up @@ -1851,7 +1851,7 @@ def ProcessCommandChain(wb: Optional[WebSocketClientProtocol], cmd_chain: Union[
else:
if wb is None:
# If not prezent init connection and if command is token-init (without help being invoked) then use usercert
wb = InitConnection(wb, args, use_usercert = (cmd == 'token-init' and not is_help(args)), cmdlist_func = constructCmdList)
wb = InitConnection(wb, args if cmd == 'token-init' else [], use_usercert = (cmd == 'token-init' and not is_help(args)), cmdlist_func = constructCmdList)
ALIENPY_GLOBAL_WB = wb
args.append('-nokeys') # Disable return of the keys. ProcessCommandChain is used for user-based communication so json keys are not needed
ret_obj = ProcessInput(wb, cmd, args, pipe_to_shell_cmd)
Expand Down

0 comments on commit 3ee3aa2

Please sign in to comment.