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:
Bryan Bende 2019-12-10 14:00:48 -05:00 committed by Mark Payne
parent 29e7adb2b4
commit 442858127b
1 changed files with 3 additions and 1 deletions

View File

@ -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();