confidant_client/__init__.py
def _load_user_auth_context(self):
        """Conditionally load from auth context for users."""
        if self.config['auth_context'].get('user_type') == 'user':
            if not self.config['auth_context'].get('from'):
                try:
                    username = self.iam_client.get_user()['User']['UserName']
                    self.config['auth_context']['from'] = username
                except Exception:
                    logging.warning(
                        'Could not set from auth_context from get_user.'
                    )
Conditionally load from auth context for users.
Conditionally load from auth context for users.
Conditionally load from auth context for users .
def _load_user_auth_context(self):
        if self.config['auth_context'].get('user_type') == 'user':
            if not self.config['auth_context'].get('from'):
                try:
                    username = self.iam_client.get_user()['User']['UserName']
                    self.config['auth_context']['from'] = username
                except Exception:
                    logging.warning(
                        'Could not set from auth_context from get_user.'
                    )
def _load_user_auth_context ( self ) : if self . config [ 'auth_context' ] . get ( 'user_type' ) == 'user' : if not self . config [ 'auth_context' ] . get ( 'from' ) : try : username = self . iam_client . get_user ( ) [ 'User' ] [ 'UserName' ] self . config [ 'auth_context' ] [ 'from' ] = username except Exception : logging . warning ( 'Could not set from auth_context from get_user.' )
Conditionally load from auth context for users.
Conditionally load from auth context for users .
"""Conditionally load from auth context for users."""
self