Skip to content

Commit 7035614

Browse files
authored
Merge pull request #75 from stackhpc/upstream/2023.1-2023-12-11
Synchronise 2023.1 with upstream
2 parents be259e9 + 1de4b6e commit 7035614

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

networking_generic_switch/batching.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,9 @@ def _send_commands(self, device, batches, lock):
444444
# tell workers which batches have now been executed
445445
self.queue.record_result(batch)
446446

447-
try:
448-
device.save_configuration(net_connect)
449-
except Exception:
450-
LOG.exception("Failed to save configuration")
451-
# Probably not worth failing all batches for this.
447+
if device._get_save_configuration():
448+
try:
449+
device.save_configuration(net_connect)
450+
except Exception:
451+
LOG.exception("Failed to save configuration")
452+
# Probably not worth failing all batches for this.

0 commit comments

Comments
 (0)