Merge "Fix os-keypairs pagination links"
This commit is contained in:
commit
d5b75845a6
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ from nova.api.openstack import common
|
||||
|
||||
class ViewBuilder(common.ViewBuilder):
|
||||
|
||||
_collection_name = "keypairs"
|
||||
_collection_name = 'os-keypairs'
|
||||
# TODO(takashin): After v2 and v2.1 is no longer supported,
|
||||
# 'type' can always be included in the response.
|
||||
_index_params = ('name', 'public_key', 'fingerprint')
|
||||
|
@ -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"
|
||||
}
|
||||
]
|
||||
|
@ -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…
Reference in New Issue
Block a user