Skip to content

Commit

Permalink
Platform env expects a dict of vars (#3690)
Browse files Browse the repository at this point in the history
* Platform `env` expects a dict of vars

* Fix corresponding test + coding standard
  • Loading branch information
zeitounator committed Oct 21, 2022
1 parent 144bbae commit c6e2dbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/molecule/data/molecule.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@
"type": "string"
},
"env": {
"items": {
"type": "object"
"additionalProperties": {
"type": "string"
},
"title": "Platform Environment Variables",
"type": "array"
"type": "object"
},
"environment": {
"additionalProperties": {
Expand Down
6 changes: 3 additions & 3 deletions tools/test-schema/test/molecule/cluster/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ platforms:
groups:
- zookeeper
env:
- Hello: world!
Hello: world!

- name: instance-2
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
Expand All @@ -34,7 +34,7 @@ platforms:
groups:
- zookeeper
env:
- Hello: world!
Hello: world!

- name: instance-3
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
Expand All @@ -46,7 +46,7 @@ platforms:
groups:
- zookeeper
env:
- Hello: world!
Hello: world!

provisioner:
name: ansible
Expand Down

0 comments on commit c6e2dbb

Please sign in to comment.