docker: Add metadata_settings to optional parameters for yaml validate
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>
Thu, 16 Mar 2017 15:16:22 +0000 (17:16 +0200)
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>
Thu, 16 Mar 2017 15:17:07 +0000 (17:17 +0200)
This section will be needed for TLS-everywhere. So it should be added as
optional in the yaml-validate.

Change-Id: Ic6ea563b6c8e454cb51f640bb5aaa3adda82a5dd

tools/yaml-validate.py

index 7c04954..c6e5185 100755 (executable)
@@ -26,7 +26,8 @@ ENDPOINT_MAP_FILE = 'endpoint_map.yaml'
 REQUIRED_DOCKER_SECTIONS = ['service_name', 'docker_config', 'kolla_config',
                             'puppet_config', 'config_settings', 'step_config']
 OPTIONAL_DOCKER_SECTIONS = ['docker_puppet_tasks', 'upgrade_tasks',
-                            'service_config_settings', 'host_prep_tasks']
+                            'service_config_settings', 'host_prep_tasks',
+                            'metadata_settings']
 DOCKER_PUPPET_CONFIG_SECTIONS = ['config_volume', 'puppet_tags', 'step_config',
                                  'config_image']