From f4a021a9d7412a80bb72df9a5e1d13285bc84b80 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Fri, 10 Jun 2022 20:27:29 +0200 Subject: first commit --- awscli_plugin_passtotp/boto_plugin.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 awscli_plugin_passtotp/boto_plugin.py (limited to 'awscli_plugin_passtotp/boto_plugin.py') diff --git a/awscli_plugin_passtotp/boto_plugin.py b/awscli_plugin_passtotp/boto_plugin.py new file mode 100644 index 0000000..9a2f249 --- /dev/null +++ b/awscli_plugin_passtotp/boto_plugin.py @@ -0,0 +1,12 @@ +from . import inject_pass_totp_prompter +import botocore.session + +old_init = botocore.session.Session.__init__ + + +def patched_session_init(self, *args, **kwargs): + old_init(self, *args, **kwargs) + inject_pass_totp_prompter(self) + + +botocore.session.Session.__init__ = patched_session_init -- cgit v1.2.3