summaryrefslogtreecommitdiffstats
path: root/nova/api/openstack/compute/plugins/v3/flavors.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/api/openstack/compute/plugins/v3/flavors.py')
-rw-r--r--nova/api/openstack/compute/plugins/v3/flavors.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/api/openstack/compute/plugins/v3/flavors.py b/nova/api/openstack/compute/plugins/v3/flavors.py
index 733ff3750..31c0fa8b7 100644
--- a/nova/api/openstack/compute/plugins/v3/flavors.py
+++ b/nova/api/openstack/compute/plugins/v3/flavors.py
@@ -34,6 +34,8 @@ def make_flavor(elem, detailed=False):
elem.set('ram')
elem.set('disk')
elem.set('vcpus', xmlutil.EmptyStringSelector('vcpus'))
+ # NOTE(vish): this was originally added without a namespace
+ elem.set('swap', xmlutil.EmptyStringSelector('swap'))
xmlutil.make_links(elem, 'links')