Skip to content

Commit 7e0016c

Browse files
committed
Simplify as suggested by Oliver Sanders
1 parent 8075c49 commit 7e0016c

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

cylc/flow/broadcast_mgr.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -310,19 +310,18 @@ def put_broadcast(
310310
if namespace not in self.linearized_ancestors:
311311
bad_namespaces.append(namespace)
312312
elif not bad_point:
313-
# Check broadcast against config:
314-
self.check_for_old_and_new_platform_settings(
315-
self.schd.config.get_config(
316-
['runtime', namespace]
317-
).copy(),
318-
namespace,
319-
coerced_setting,
320-
)
321-
# Check broadcast against existing broadcasts:
322-
self.check_for_old_and_new_platform_settings(
313+
# Check broadcast against config and against
314+
# existing broadcasts:
315+
newconfig = pdeepcopy(self.schd.config.get_config(
316+
['runtime', namespace]
317+
))
318+
poverride(
319+
newconfig,
323320
self.broadcasts.get(point_string, {})
324321
.get(namespace, {})
325-
.copy(),
322+
)
323+
self.check_for_old_and_new_platform_settings(
324+
newconfig,
326325
namespace,
327326
coerced_setting,
328327
)

0 commit comments

Comments
 (0)