def _get_users(self, context):
    users = None
    if context.get('user'):
        user = {'name': context['user'], 'password': context['password'], 'databases': self._get_databases(context)}
        if context['host']:
            user['host'] = context['host']
        users = [user]
    return users
def _get_users(self, context):
    users = None
    if context.get('user'):
        user = {'name': context['user'], 'password': context['password'], 'databases': self._get_databases(context)}
        if context['host']:
            user['host'] = context['host']
        users = [user]
    return users