summaryrefslogtreecommitdiff
path: root/api-ref
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2019-08-01 10:44:08 -0400
committerStephen Finucane <stephenfin@redhat.com>2019-12-12 14:56:39 +0000
commite7cc5efd20dc49a24e6bec36f2d9ea9e9ab28128 (patch)
tree4c23a7cff60001f63a908250e58b1f4006bb4b47 /api-ref
parent2e7a0088c27ca2b6418a4f9109bb8a6a001602ce (diff)
downloadnova-e7cc5efd20dc49a24e6bec36f2d9ea9e9ab28128.tar.gz
Keep pre-commit inline with hacking and fix whitespace
The flake8 hook for pre-commit installs its own flake8 which is not what hacking is pinned to. This results in a bunch of errors. By doing a local hook we can cause these to be the same. There are flake8 exclusions in tox.ini that need to be used in pre-commit. Also we should exclude svg files from the whitespace modifications, because who cares. Once those are fixed, running pre-commit -a fixes some whitespace issues. While the normal use isn't to run -a - if someone does make a patch that touches any of these they'll get erroneous unrelated errors compared to their lower work - so fix all of the existing issues, which are mostly space-at-end-of-line issues it seems. Change-Id: I78e753492e99c03b30a0a691db3bd75ee3d289c9
Diffstat (limited to 'api-ref')
-rw-r--r--api-ref/source/images.inc14
-rw-r--r--api-ref/source/os-floating-ips.inc4
-rw-r--r--api-ref/source/os-volumes.inc8
3 files changed, 13 insertions, 13 deletions
diff --git a/api-ref/source/images.inc b/api-ref/source/images.inc
index 69ae4cf087..621641281f 100644
--- a/api-ref/source/images.inc
+++ b/api-ref/source/images.inc
@@ -103,7 +103,7 @@ Response
- name: image_name
- minRam: minRam_body
- minDisk: minDisk_body
- - metadata: metadata_object
+ - metadata: metadata_object
- created: created
- updated: updated
- status: image_status
@@ -147,7 +147,7 @@ Response
- name: image_name
- minRam: minRam_body
- minDisk: minDisk_body
- - metadata: metadata_object
+ - metadata: metadata_object
- created: created
- updated: updated
- status: image_status
@@ -208,7 +208,7 @@ Response
.. rest_parameters:: parameters.yaml
- - metadata: metadata_object
+ - metadata: metadata_object
**Example List Image Metadata Details: JSON response**
@@ -233,7 +233,7 @@ Request
.. rest_parameters:: parameters.yaml
- image_id: image_id
- - metadata: metadata_object
+ - metadata: metadata_object
**Example Create Image Metadata: JSON request**
@@ -245,7 +245,7 @@ Response
.. rest_parameters:: parameters.yaml
- - metadata: metadata_object
+ - metadata: metadata_object
**Example Create Image Metadata: JSON response**
@@ -270,7 +270,7 @@ Request
.. rest_parameters:: parameters.yaml
- image_id: image_id
- - metadata: metadata_object
+ - metadata: metadata_object
**Example Update Image Metadata: JSON request**
@@ -282,7 +282,7 @@ Response
.. rest_parameters:: parameters.yaml
- - metadata: metadata_object
+ - metadata: metadata_object
**Example Update Image Metadata: JSON response**
diff --git a/api-ref/source/os-floating-ips.inc b/api-ref/source/os-floating-ips.inc
index 89c349fa5b..797b317e94 100644
--- a/api-ref/source/os-floating-ips.inc
+++ b/api-ref/source/os-floating-ips.inc
@@ -86,7 +86,7 @@ can change these permissions through the ``policy.json`` file.
Normal response codes: 200
-Error response codes: badRequest(400), unauthorized(401), forbidden(403),
+Error response codes: badRequest(400), unauthorized(401), forbidden(403),
itemNotFound(404)
Request
@@ -131,7 +131,7 @@ can change these permissions through the ``policy.json`` file.
Normal response codes: 200
-Error response codes: badRequest(400), unauthorized(401), forbidden(403),
+Error response codes: badRequest(400), unauthorized(401), forbidden(403),
itemNotFound(404)
Request
diff --git a/api-ref/source/os-volumes.inc b/api-ref/source/os-volumes.inc
index b95edc2ee6..1f71197890 100644
--- a/api-ref/source/os-volumes.inc
+++ b/api-ref/source/os-volumes.inc
@@ -50,7 +50,7 @@ Response
- displayDescription: display_description
- displayName: display_name
- id: volume_id_resp
- - metadata: metadata_object
+ - metadata: metadata_object
- size: size
- snapshotId: snapshot_id
- status: volume_status
@@ -110,7 +110,7 @@ Response
- displayName: display_name
- displayDescription: display_description
- id: volume_id_resp
- - metadata: metadata_object
+ - metadata: metadata_object
- size: size
- snapshotId: snapshot_id
- status: volume_status
@@ -158,7 +158,7 @@ Response
- displayName: display_name
- displayDescription: display_description
- id: volume_id_resp
- - metadata: metadata_object
+ - metadata: metadata_object
- size: size
- snapshotId: snapshot_id
- status: volume_status
@@ -205,7 +205,7 @@ Response
- displayName: display_name
- displayDescription: display_description
- id: volume_id_resp
- - metadata: metadata_object
+ - metadata: metadata_object
- size: size
- snapshotId: snapshot_id
- status: volume_status