Skip to content

add_device_template error, wrong payload #171

@ernestoherrerab

Description

@ernestoherrerab

The payload is declared as follows:

        payload = {
            'templateName': device_template['templateName'],
            'templateDescription': device_template['templateDescription'],
            'deviceType': device_template['deviceType'],
            'factoryDefault': device_template['factoryDefault'],
            'configType': device_template['configType'],
            'featureTemplateUidRange': []
        }

However there is no reference to the key 'featureTemplateUidRange' and instead the following is used:

payload['generalTemplates']

in the condition:

else:
            payload['generalTemplates'] = device_template['generalTemplates']

However, in the payload there is no mention of ['generalTemplates']

Can this be fixed in the next iteration?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions