mirror of https://github.com/apache/nifi.git
NIFI-6938 Fixing import-flow-version CLI command to correctly copy over fields
This closes #3925. Signed-off-by: Mark Payne <markap14@hotmail.com>
This commit is contained in:
parent
29e7adb2b4
commit
442858127b
|
@ -95,7 +95,9 @@ public class ImportFlowVersion extends AbstractNiFiRegistryCommand<StringResult>
|
|||
final VersionedFlowSnapshot snapshot = new VersionedFlowSnapshot();
|
||||
snapshot.setSnapshotMetadata(metadata);
|
||||
snapshot.setFlowContents(deserializedSnapshot.getFlowContents());
|
||||
|
||||
snapshot.setExternalControllerServices(deserializedSnapshot.getExternalControllerServices());
|
||||
snapshot.setParameterContexts(deserializedSnapshot.getParameterContexts());
|
||||
snapshot.setFlowEncodingVersion(deserializedSnapshot.getFlowEncodingVersion());
|
||||
|
||||
final VersionedFlowSnapshot createdSnapshot = snapshotClient.create(snapshot);
|
||||
final VersionedFlowSnapshotMetadata createdMetadata = createdSnapshot.getSnapshotMetadata();
|
||||
|
|
Loading…
Reference in New Issue