From 80aa9f54d7935c21ae06da1d2b7292844beb5274 Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Fri, 3 Aug 2012 11:03:10 -0700 Subject: Make extension aliases consistent related to blueprint disable-server-extensions The alias for extensions should start with os- where possible. Unfortunately the alias is used for xml namespacing in some cases so it cannot be made consistent for some legacy extensions There will continue to be a small number of output extensions that have no special namespace because they were added before we started namespacing extensions and they need to remain the same for legacy compatibility. In the future all extensions should include a namespace prefix when adding extra data to the api. Change-Id: I3a31fa21e16dc7c289d7f5b2e4736ab48bf42557 --- nova/api/openstack/compute/contrib/config_drive.py | 2 +- nova/api/openstack/compute/contrib/security_groups.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'nova/api') diff --git a/nova/api/openstack/compute/contrib/config_drive.py b/nova/api/openstack/compute/contrib/config_drive.py index a2b354365..3ec2c3db4 100644 --- a/nova/api/openstack/compute/contrib/config_drive.py +++ b/nova/api/openstack/compute/contrib/config_drive.py @@ -77,7 +77,7 @@ class Config_drive(extensions.ExtensionDescriptor): """Config Drive Extension""" name = "ConfigDrive" - alias = "os-config_drive" + alias = "os-config-drive" namespace = "http://docs.openstack.org/compute/ext/config_drive/api/v1.1" updated = "2012-07-16T00:00:00+00:00" diff --git a/nova/api/openstack/compute/contrib/security_groups.py b/nova/api/openstack/compute/contrib/security_groups.py index a45aac442..6d85d37a6 100644 --- a/nova/api/openstack/compute/contrib/security_groups.py +++ b/nova/api/openstack/compute/contrib/security_groups.py @@ -456,9 +456,8 @@ class SecurityGroupActionController(wsgi.Controller): class Security_groups(extensions.ExtensionDescriptor): """Security group support""" - name = "SecurityGroups" - alias = "security_groups" + alias = "os-security-groups" namespace = "http://docs.openstack.org/compute/ext/securitygroups/api/v1.1" updated = "2011-07-21T00:00:00+00:00" -- cgit