hpcflow.sdk.persistence.utils.ask_pw_on_auth_exc#

hpcflow.sdk.persistence.utils.ask_pw_on_auth_exc(f, *args, add_pw_to=None, **kwargs)#

Run the given function on the given arguments and add a password if the function fails with an SSHException.

Parameters:
  • f (Callable[..., T]) –

  • add_pw_to (str | None) –

Return type:

tuple[T, str | None]