Parcourir la 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 il y a 7 ans
Parent
révision
f5dba8c759
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. +2
    -1
      _modules/virtng.py

+ 2
- 1
_modules/virtng.py Voir le fichier

@@ -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:

Chargement…
Annuler
Enregistrer