def get_user_hosts(self, username):
        users = self.__execute_query("select Host from mysql.user where LOWER(User)='%s'" % username.lower())
        hosts = []
        if users:
            for user in users:
                hosts.append(user['Host'])

        return hosts
Returns all the available hosts that this user can login from.
dataset/ETHPy150Open python-provy/provy/provy/more/centos/database/mysql.py/MySQLRole.get_user_hosts