def ex_list_packages(self):

        try:
            result = self.connection.request(
                API_ROOT + '/cloud/packages/').object
        except HostVirtualException:
            return []
        pkgs = []
        for value in result:
            pkgs.append(value)
        return pkgs
Validate optional authentication parameters.
dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/hostvirtual.py/HostVirtualNodeDriver.ex_list_packages--crossover with--dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/common.py/validate_auth_option