Chaffelson / nipyapi

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

Can't update processor name #272

Open fernandodanielmartinez opened 3 years ago

fernandodanielmartinez commented 3 years ago

Description

Hi I want to update a processor name but it doesn't work. It is possible? I saw that update_processor only can receive a ProcessorConfigDTO that not include the processor name.

What I Did

Code: config = nifi.PropertyDescriptorDTO(name='InsertRaw(PySpark)') canvas.update_processor(item,config)

Error: "update param is not an instance of nifi.ProcessorConfigDTO"

Urgency

0 critical

Chaffelson commented 3 years ago

This is a good point, we do not currently have a simple method for changing the processor name and could add it to the update_processor command

fernandodanielmartinez commented 3 years ago

Hi Dan! That would be a great enhancement to this beautiful library! update_processor could use ProcessorDTO config?