remotelogin/devices/managers/users.py
def add(self, user_or_username, set_as_default=False, **kwargs):
        """ add a user to the device.

            Args:
                user_or_username (str or UserInfo): the name of the username or a User instance
                set_as_default (bool): flag to indicate that we want this user to be the default to be used by
                                       connections without username
                kwargs (dict): arguments to pass to User if creating a user
        """
        user = super().add(user_or_username, set_as_default=set_as_default, **kwargs)

        if user.expected_prompt == -1 and self.default and self.default.expected_prompt != -1:
            user.expected_prompt = self.default.expected_prompt

        return user
 add a user to the device.

            Args:
                user_or_username (str or UserInfo): the name of the username or a User instance
                set_as_default (bool): flag to indicate that we want this user to be the default to be used by
                                       connections without username
                kwargs (dict): arguments to pass to User if creating a user
        
add a user to the device.
add a user to the device .
def add(self, user_or_username, set_as_default=False, **kwargs):
        user = super().add(user_or_username, set_as_default=set_as_default, **kwargs)
        if user.expected_prompt == -1 and self.default and self.default.expected_prompt != -1:
            user.expected_prompt = self.default.expected_prompt
        return user
def add ( self , user_or_username , set_as_default = False , ** kwargs ) : user = super ( ) . add ( user_or_username , set_as_default = set_as_default , ** kwargs ) if user . expected_prompt == - 1 and self . default and self . default . expected_prompt != - 1 : user . expected_prompt = self . default . expected_prompt return user
add a user to the device.
add a user to the device .
""" add a user to the device.

            Args:
                user_or_username (str or UserInfo): the name of the username or a User instance
                set_as_default (bool): flag to indicate that we want this user to be the default to be used by
                                       connections without username
                kwargs (dict): arguments to pass to User if creating a user
        """
self
user_or_username
the name of the username or a User instance
the name of the username or a User instance
set_as_default
flag to indicate that we want this user to be the default to be used by
connections without username
flag to indicate that we want this user to be the default to be used by connections without username
kwargs
arguments to pass to User if creating a user
arguments to pass to User if creating a user