[Pulp-list] Pulp 3 Python client
Bin Li (BLOOMBERG/ 120 PARK)
bli111 at bloomberg.net
Tue Oct 8 18:12:35 UTC 2019
I have tried to follow the blog https://pulpproject.org/2018/09/04/generate-pulp-3-python-client-using-swagger-codegen/ and got a syntax error.
File "/opt/utils/venv/pulp/3.6.5/lib64/python3.6/site-packages/pulp3_client/models/update_record.py", line 79
def __init__(self, href=None, created=None, type=None, id=None, updated_date=None, description=None, issued_date=None, fromstr=None, status=None, title=None, summary=None, version=None, type=None, severity=None, solution=None, release=None, rights=None, pushcount=None, pkglist=None, references=None): # noqa: E501
^
SyntaxError: duplicate argument 'type' in function definition
Type is declared twice in the __init__. There is a duplicate key 'type' in attribute_map models/update_record.py.
attribute_map = {
'href': '_href',
'created': '_created',
'type': '_type',
'id': 'id',
'updated_date': 'updated_date',
'description': 'description',
'issued_date': 'issued_date',
'fromstr': 'fromstr',
'status': 'status',
'title': 'title',
'summary': 'summary',
'version': 'version',
'type': 'type',
'severity': 'severity',
'solution': 'solution',
'release': 'release',
'rights': 'rights',
'pushcount': 'pushcount',
'pkglist': 'pkglist',
'references': 'references'
}
Anyone knows how this can be fixed?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20191008/79bb2ac7/attachment.htm>
More information about the Pulp-list
mailing list