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

_______________________________________________
Pulp-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-list

Reply via email to