Add resource link to domain_id path parameter
Same way as for user we add resource link to the domain_id path parameter allowing cli user to use `--domain-id|--domain-name`. Change-Id: Ibf220ff2b3cd11d639b6b1c5fdff66da6fa80972
This commit is contained in:
@@ -233,6 +233,14 @@ class KeystoneGenerator(OpenStackServerSourceBase):
|
||||
path_param.openstack["resource_link"] = (
|
||||
"identity/v3/user.id"
|
||||
)
|
||||
if path_param.name == "domain_id" and path_resource_names != [
|
||||
"domains"
|
||||
]:
|
||||
if not path_param.openstack:
|
||||
path_param.openstack = {}
|
||||
path_param.openstack["resource_link"] = (
|
||||
"identity/v3/domain.id"
|
||||
)
|
||||
openapi_spec.components.parameters[global_param_name] = (
|
||||
path_param
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user