diff options
| author | Rick Harris <rconradharris@gmail.com> | 2012-02-01 21:41:38 +0000 |
|---|---|---|
| committer | Rick Harris <rconradharris@gmail.com> | 2012-02-01 21:41:38 +0000 |
| commit | 67a419de2d16b83a4ab53431b1ed3fb83abd9eac (patch) | |
| tree | eca0519862524adcbd61013ca86d028cfdd7a4de | |
| parent | 98a012fbb14d1b6463b9c8d13fcb1de742bae1d0 (diff) | |
Improve dom0 and template VM avoidance.
Fixes bug 920588
Change-Id: Ia19f6e99faceba75af509699a5601f87218671ed
| -rw-r--r-- | nova/virt/xenapi/vmops.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/xenapi/vmops.py b/nova/virt/xenapi/vmops.py index cb07bd255..5b364487f 100644 --- a/nova/virt/xenapi/vmops.py +++ b/nova/virt/xenapi/vmops.py @@ -1384,7 +1384,7 @@ class VMOps(object): for vrec in vm_rec['VIFs']]: vif_map[vif['device']] = vif['MAC'] name = vm_rec['name_label'] - if name.startswith('Control domain'): + if vm_rec["is_a_template"] or vm_rec["is_control_domain"]: continue vifs_bw = bw.setdefault(name, {}) for key, val in data.iteritems(): |
