Lint YAML files
Currently most OpenStack code is linted, but YAML files are not. As a result, sometimes YAML problems enter the code base (e.g., the key duplicate fixed in change I7f2369adfb152fd2a74b9b105e969e653e592922). This patch enables YAML linting in tox linting tests, using the yamllint tool [1]. It checks syntax errors, key duplicates, and cosmetic problems. [1]: http://yamllint.readthedocs.org/ EDIT: It also fixes six errors (including key duplicates) that entered the code base after the first fix change was merged. (I7f2369adfb152fd2a74b9b105e969e653e592922) Change-Id: Ie746230f28fe3ed0cf218201d5a3810f7bc44070
This commit is contained in:
parent
46d01aac66
commit
e9d9662bb6
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
extends: default
|
||||
rules:
|
||||
braces: {min-spaces-inside: 0, max-spaces-inside: 1}
|
||||
brackets: {min-spaces-inside: 0, max-spaces-inside: 1}
|
||||
comments: disable
|
||||
comments-indentation: disable
|
||||
document-start: disable
|
||||
indentation: disable
|
||||
line-length: disable
|
|
@ -69,7 +69,7 @@ outputs:
|
|||
secret_status:
|
||||
description: The status of the secret.
|
||||
value: { get_attr: [secret, status] }
|
||||
secret_status:
|
||||
secret_payload:
|
||||
description: The decrypted secret payload.
|
||||
value: { get_attr: [secret, status] }
|
||||
secret_ref:
|
||||
|
|
|
@ -156,7 +156,6 @@ resources:
|
|||
outputs:
|
||||
|
||||
lburl:
|
||||
description: URL of the loadbalancer
|
||||
value:
|
||||
str_replace:
|
||||
template: http://IP_ADDRESS:PORT
|
||||
|
|
|
@ -93,4 +93,3 @@ outputs:
|
|||
template: curl -X POST LINK
|
||||
params:
|
||||
LINK: {get_attr: [receiver_scale_in, channel, alarm_url]}
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ salt
|
|||
testrepository>=0.0.18
|
||||
testscenarios>=0.4
|
||||
testtools>=0.9.34
|
||||
yamllint>=1.2.0
|
||||
|
||||
python-heatclient>=1.2.0
|
||||
python-keystoneclient>=0.10.0
|
||||
|
|
Loading…
Reference in New Issue