fix volume.limit schema
"type: int64" is wrong and "format: int64" was meant instead Also ensure operation_type is selected as "show" instead of "list" in the metadata since it returns object and not list. Change-Id: I243c74094a000ecf61edab998ae01ad432ab889e
This commit is contained in:
@@ -932,6 +932,10 @@ def post_process_block_storage_operation(
|
||||
"rust-cli"
|
||||
].cli_full_command.replace("show", "check")
|
||||
|
||||
if resource_name == "limit" and operation_name == "list":
|
||||
# Limits API return object and not a list
|
||||
operation.targets["rust-cli"].operation_type = "show"
|
||||
|
||||
if operation_name == "delete_all":
|
||||
operation.targets["rust-cli"].cli_full_command = operation.targets[
|
||||
"rust-cli"
|
||||
|
@@ -35,7 +35,7 @@ LIMITS_SCHEMA: dict[str, Any] = {
|
||||
},
|
||||
"maxTotalVolumeGigabytes": {
|
||||
"type": "integer",
|
||||
"type": "int64",
|
||||
"format": "int64",
|
||||
"description": "The maximum total amount of volumes, in gibibytes (GiB).",
|
||||
},
|
||||
"maxTotalSnapshots": {
|
||||
@@ -44,7 +44,7 @@ LIMITS_SCHEMA: dict[str, Any] = {
|
||||
},
|
||||
"maxTotalBackupGigabytes": {
|
||||
"type": "integer",
|
||||
"type": "int64",
|
||||
"format": "int64",
|
||||
"description": "The maximum total amount of backups, in gibibytes (GiB).",
|
||||
},
|
||||
"totalBackupGigabytesUsed": {
|
||||
|
Reference in New Issue
Block a user