Chaffelson / nipyapi

A convenient Python wrapper for Apache NiFi
Other
246 stars 76 forks source link

Template uploading fails due to partial match #163

Closed rsaggino closed 4 years ago

rsaggino commented 4 years ago

Description

The template uploading function (nipyapi.templates.upload_template) checks for a previously existing template with the same name but returns an error even when the template name is not an exact match.

This happens because the nipyapi.templates.get_template function is greedy by default.

Making it non-greedy by default would solve this.

Chaffelson commented 4 years ago

Great point, will get this into the next patch.