Browse Source

Fix VCP images creation

Do not change VCP disk profile globally, it causes to re-use
the properties from one node in another.

Change-Id: Iff98010c32c1060b50bc0ae040edb72108c57da1
pull/63/head
Dennis Dmitriev 7 years ago
parent
commit
f5dba8c759
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      _modules/virtng.py

+ 2
- 1
_modules/virtng.py View File

@@ -9,6 +9,7 @@ Work with virtual machines managed by libvirt

# Import python libs
from __future__ import absolute_import
import copy
import os
import re
import sys
@@ -414,7 +415,7 @@ def _disk_profile(profile, hypervisor, **kwargs):
else:
overlay = {}

disklist = __salt__['config.get']('virt:disk', {}).get(profile, default)
disklist = copy.deepcopy(__salt__['config.get']('virt:disk', {}).get(profile, default))
for key, val in overlay.items():
for i, disks in enumerate(disklist):
for disk in disks:

Loading…
Cancel
Save