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



# Import python libs # Import python libs
from __future__ import absolute_import from __future__ import absolute_import
import copy
import os import os
import re import re
import sys import sys
else: else:
overlay = {} 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 key, val in overlay.items():
for i, disks in enumerate(disklist): for i, disks in enumerate(disklist):
for disk in disks: for disk in disks:

Loading…
Cancel
Save