From 7560c1f3adb81665d5fd2b2fc305a09cd912a493 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Wed, 24 Feb 2016 07:41:08 -0500 Subject: [PATCH] Copy properties map so as to not modify it when merging with action-specific properties --- src/main/java/com/etsy/arbiter/OozieWorkflowGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/etsy/arbiter/OozieWorkflowGenerator.java b/src/main/java/com/etsy/arbiter/OozieWorkflowGenerator.java index 4c71a60..fc82452 100644 --- a/src/main/java/com/etsy/arbiter/OozieWorkflowGenerator.java +++ b/src/main/java/com/etsy/arbiter/OozieWorkflowGenerator.java @@ -203,7 +203,7 @@ private void createActionElement(Action action, DirectedAcyclicGraph> interpolated = NamedArgumentInterpolator.interpolate(type.getDefaultArgs(), action.getNamedArgs(), type.getDefaultInterpolations(), action.getPositionalArgs()); - Map mergedConfigurationProperties = type.getProperties(); + Map mergedConfigurationProperties = new HashMap<>(type.getProperties()); if (action.getConfigurationProperties() != null) { mergedConfigurationProperties.putAll(action.getConfigurationProperties()); }