This is an automated email from the ASF dual-hosted git repository.

exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new f8e3c67ea73 NIFI-15582 Fixed pg-change-all-versions not upgrading 
process groups when new version available (#10886)
f8e3c67ea73 is described below

commit f8e3c67ea7359b9ff707e24a773990bb2378ce82
Author: Pierre Villard <[email protected]>
AuthorDate: Tue Mar 10 20:58:49 2026 +0100

    NIFI-15582 Fixed pg-change-all-versions not upgrading process groups when 
new version available (#10886)
    
    Signed-off-by: David Handermann <[email protected]>
---
 .../nifi/toolkit/cli/impl/command/nifi/pg/PGChangeAllVersions.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/nifi-toolkit/nifi-toolkit-cli/src/main/java/org/apache/nifi/toolkit/cli/impl/command/nifi/pg/PGChangeAllVersions.java
 
b/nifi-toolkit/nifi-toolkit-cli/src/main/java/org/apache/nifi/toolkit/cli/impl/command/nifi/pg/PGChangeAllVersions.java
index a2e7a19d0ff..7edc0b5581b 100644
--- 
a/nifi-toolkit/nifi-toolkit-cli/src/main/java/org/apache/nifi/toolkit/cli/impl/command/nifi/pg/PGChangeAllVersions.java
+++ 
b/nifi-toolkit/nifi-toolkit-cli/src/main/java/org/apache/nifi/toolkit/cli/impl/command/nifi/pg/PGChangeAllVersions.java
@@ -130,7 +130,7 @@ public class PGChangeAllVersions extends 
AbstractNiFiCommand<ProcessGroupsVersio
             }
 
             final String currentState = 
entity.getVersionControlInformation().getState();
-            if (!"STALE".equals(currentState)) {
+            if (!"STALE".equals(currentState) && 
!"UP_TO_DATE".equals(currentState)) {
                 changeVersionResults.put(pgDTO.getId(), new 
ChangeVersionResult(previousVersion, newVersion, "Process group cannot be 
upgraded because current state is " + currentState));
                 continue;
             }

Reply via email to