Browse Source

Merge "Fix os-keypairs pagination links" into stable/rocky

changes/03/715403/1
Zuul 3 months ago
committed by Gerrit Code Review
parent
commit
569b812c3b
5 changed files with 7 additions and 7 deletions
  1. +2
    -2
      doc/api_samples/keypairs/v2.35/keypairs-list-resp.json
  2. +2
    -2
      doc/api_samples/keypairs/v2.35/keypairs-list-user2-resp.json
  3. +1
    -1
      nova/api/openstack/compute/views/keypairs.py
  4. +1
    -1
      nova/tests/functional/api_sample_tests/api_samples/keypairs/v2.35/keypairs-list-resp.json.tpl
  5. +1
    -1
      nova/tests/functional/api_sample_tests/api_samples/keypairs/v2.35/keypairs-list-user2-resp.json.tpl

+ 2
- 2
doc/api_samples/keypairs/v2.35/keypairs-list-resp.json View File

@@ -11,8 +11,8 @@
],
"keypairs_links": [
{
"href": "http://openstack.example.com/v2.1/6f70656e737461636b20342065766572/keypairs?limit=1&marker=keypair-5d935425-31d5-48a7-a0f1-e76e9813f2c3",
"href": "http://openstack.example.com/v2.1/6f70656e737461636b20342065766572/os-keypairs?limit=1&marker=keypair-5d935425-31d5-48a7-a0f1-e76e9813f2c3",
"rel": "next"
}
]
}
}

+ 2
- 2
doc/api_samples/keypairs/v2.35/keypairs-list-user2-resp.json View File

@@ -11,8 +11,8 @@
],
"keypairs_links": [
{
"href": "http://openstack.example.com/v2.1/6f70656e737461636b20342065766572/keypairs?limit=1&marker=keypair-5d935425-31d5-48a7-a0f1-e76e9813f2c3&user_id=user2",
"href": "http://openstack.example.com/v2.1/6f70656e737461636b20342065766572/os-keypairs?limit=1&marker=keypair-5d935425-31d5-48a7-a0f1-e76e9813f2c3&user_id=user2",
"rel": "next"
}
]
}
}

+ 1
- 1
nova/api/openstack/compute/views/keypairs.py View File

@@ -18,7 +18,7 @@ from nova.api.openstack import common

class ViewBuilder(common.ViewBuilder):

_collection_name = "keypairs"
_collection_name = 'os-keypairs'

def get_links(self, request, keypairs):
return self._get_collection_links(request, keypairs,


+ 1
- 1
nova/tests/functional/api_sample_tests/api_samples/keypairs/v2.35/keypairs-list-resp.json.tpl View File

@@ -11,7 +11,7 @@
],
"keypairs_links": [
{
"href": "%(versioned_compute_endpoint)s/keypairs?limit=1&marker=%(keypair_name)s",
"href": "%(versioned_compute_endpoint)s/os-keypairs?limit=1&marker=%(keypair_name)s",
"rel": "next"
}
]


+ 1
- 1
nova/tests/functional/api_sample_tests/api_samples/keypairs/v2.35/keypairs-list-user2-resp.json.tpl View File

@@ -11,7 +11,7 @@
],
"keypairs_links": [
{
"href": "%(versioned_compute_endpoint)s/keypairs?limit=1&marker=%(keypair_name)s&user_id=user2",
"href": "%(versioned_compute_endpoint)s/os-keypairs?limit=1&marker=%(keypair_name)s&user_id=user2",
"rel": "next"
}
]


Loading…
Cancel
Save