Github user bbende commented on the issue:
https://github.com/apache/nifi/pull/2219
@pvillard31 if the variable is added and not referenced by anything then i
believe that is expected behavior, there would be no reason to include that
variable in the versioned flow sent to the registry if it is not referenced by
anything---
