From e332c8a3133b1c550c02f8793c19fc2ee062a127 Mon Sep 17 00:00:00 2001 From: Devananda van der Veen Date: Tue, 12 Feb 2013 18:16:30 -0800 Subject: Don't modify injected_files inside PXE driver Make a local copy of injected_files so that we don't modify the original. Change-Id: I508cfc0baec15a091a1717eb2aebb9dd39278e5b --- nova/virt/baremetal/pxe.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nova') diff --git a/nova/virt/baremetal/pxe.py b/nova/virt/baremetal/pxe.py index 9a8a4fed0..14bdab2b0 100644 --- a/nova/virt/baremetal/pxe.py +++ b/nova/virt/baremetal/pxe.py @@ -309,6 +309,9 @@ class PXE(base.NodeDriver): if injected_files is None: injected_files = [] + else: + # NOTE(deva): copy so we dont modify the original + injected_files = list(injected_files) net_config = build_network_config(network_info) -- cgit