def filter_docker_plays(plays, repo_path):
 items = set()
 for play in plays:
  dockerfile = pathlib2.Path(DOCKER_PATH_ROOT, play, 'Dockerfile')
  if dockerfile.exists():
   items.add(play)
  else:
   LOGGER.warning(("covered playbook '%s' does not have Dockerfile." % play))
 return items

def filter_docker_plays ( plays , repo_path ) : items = set ( ) for play in plays : dockerfile = pathlib2 . Path ( DOCKER_PATH_ROOT , play , 'Dockerfile' ) if dockerfile . exists ( ) : items . add ( play ) else : LOGGER . warning ( ( "covered playbook '%s' does not have Dockerfile." % play ) ) return items
filters out docker plays that do not have a dockerfile .