Project

Profile

Help

Issue #7394

closed

Can't list distribution trees with bindings

Added by ppicka about 4 years ago. Updated about 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
API Bindings
Sprint:
Sprint 80
Quarter:

Description

Using python pulp_rpm bindings.

Initialized same way as in the tests:

dist_tree_api = ContentDistributionTreesApi(cls.client)

Other content as packages and comps content initialized same way works ok.

dist_tree_api.list()

fails

Traceback (most recent call last):
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/IPython/core/interactiveshell.py", line 3417, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-4-ad9fb754f7d6>", line 1, in <module>
    self.dist_tree_api.list()
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api/content_distribution_trees_api.py", line 174, in list
    return self.list_with_http_info(**kwargs)  # noqa: E501
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api/content_distribution_trees_api.py", line 260, in list_with_http_info
    return self.api_client.call_api(
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 349, in call_api
    return self.__call_api(resource_path, method,
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 193, in __call_api
    return_data = self.deserialize(response_data, response_type)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 265, in deserialize
    return self.__deserialize(data, response_type)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 304, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 640, in __deserialize_model
    kwargs[attr] = self.__deserialize(value, attr_type)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 281, in __deserialize
    return [self.__deserialize(sub_data, sub_kls)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 281, in <listcomp>
    return [self.__deserialize(sub_data, sub_kls)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 304, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 640, in __deserialize_model
    kwargs[attr] = self.__deserialize(value, attr_type)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 281, in __deserialize
    return [self.__deserialize(sub_data, sub_kls)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 281, in <listcomp>
    return [self.__deserialize(sub_data, sub_kls)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 304, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 642, in __deserialize_model
    instance = klass(**kwargs)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/models/variant_response.py", line 85, in __init__
    self.source_packages = source_packages
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/models/variant_response.py", line 237, in source_packages
    raise ValueError("Invalid value for `source_packages`, must not be `None`")  # noqa: E501
ValueError: Invalid value for `source_packages`, must not be `None`

rpm_bindings.version '3.7.0.dev0' pulp_rpm.version '3.7.0.dev'

Also available in: Atom PDF