nipyapi icon indicating copy to clipboard operation
nipyapi copied to clipboard

Can't update processor name

Open fernandodanielmartinez opened this issue 4 years ago • 2 comments

  • Nipyapi version: 0.16.2
  • NiFi version: 1.9
  • NiFi-Registry version: N/A
  • Python version: 3.8
  • Operating System: Windows

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

fernandodanielmartinez avatar Apr 15 '21 18:04 fernandodanielmartinez

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

Chaffelson avatar Apr 16 '21 08:04 Chaffelson

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

fernandodanielmartinez avatar Apr 16 '21 13:04 fernandodanielmartinez