Merge "filter exclude instances during migration"

This commit is contained in:
Zuul
2018-04-02 12:09:47 +00:00
committed by Gerrit Code Review
22 changed files with 210 additions and 107 deletions

View File

@@ -16,6 +16,7 @@
Openstack implementation of the cluster graph.
"""
import ast
from lxml import etree
import networkx as nx
from oslo_concurrency import lockutils
@@ -225,6 +226,8 @@ class ModelRoot(nx.DiGraph, base.Model):
for inst in root.findall('.//Instance'):
instance = element.Instance(**inst.attrib)
instance.watcher_exclude = ast.literal_eval(
inst.attrib["watcher_exclude"])
model.add_instance(instance)
parent = inst.getparent()