diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-08-03 11:03:10 -0700 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-08-04 14:54:50 -0700 |
| commit | 80aa9f54d7935c21ae06da1d2b7292844beb5274 (patch) | |
| tree | 664e25835eb46179ded3063b2e93d5e2eac98eb7 /nova/api | |
| parent | ef306fe4c342cf5e54b4512e46b67c80fbb414ab (diff) | |
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
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/compute/contrib/config_drive.py | 2 | ||||
| -rw-r--r-- | nova/api/openstack/compute/contrib/security_groups.py | 3 |
2 files changed, 2 insertions, 3 deletions
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" |
