aboutsummaryrefslogtreecommitdiffstats
path: root/docker/docker-puppet.py
diff options
context:
space:
mode:
authorSteve Baker <sbaker@redhat.com>2017-03-01 03:09:31 +0000
committerSteve Baker <sbaker@redhat.com>2017-03-01 21:37:54 +0000
commit610850140d605b18f4a28099f160fff1e489443d (patch)
treee306e29a9f8e5909f987dd00ec525dc92ead6322 /docker/docker-puppet.py
parentebee7ecfa70b5defe897995c72effa60538ccffc (diff)
Put docker puppet config in puppet_config dict
This approach removes the need for the yaql zip to build the docker-puppet data by building the data in a puppet_config dict. This allows a future change to make docker-puppet.py only accept dict data. Currently the step_config is left where it is and referenced inside puppet_config, but feedback is welcome whether this is necessary or desirable. Change-Id: I4a4d7a6fd2735cb841174af305dbb62e0b3d3e8c
Diffstat (limited to 'docker/docker-puppet.py')
-rwxr-xr-xdocker/docker-puppet.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/docker/docker-puppet.py b/docker/docker-puppet.py
index d9496af6..157bf63f 100755
--- a/docker/docker-puppet.py
+++ b/docker/docker-puppet.py
@@ -102,6 +102,9 @@ for service in (json_data or []):
config_image = service[3] or ''
volumes = service[4] if len(service) > 4 else []
+ if not manifest or not config_image:
+ continue
+
print('---------')
print('config_volume %s' % config_volume)
print('puppet_tags %s' % puppet_tags)