Deploy configs if condition is true

#1

Hi,

My question is regarding configuration deployment.
When I deploys changes, it should be conditional. I would like to fail deployment of my node if input from hardware is not correct. How can I do it? So, if input is correct it will save configs in flow.json otherwise not.

Thanks.

Best Regards,
Rohit

#2

Hi,

currently there is no way to put any custom logic in the deploy path for doing what you describe.

But it is a use case we're considering with the runtime/editor split work in 0.20.

Nick