summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild/creating_data/docker-images-collector.sh6
-rw-r--r--build/requirements.txt1
2 files changed, 3 insertions, 4 deletions
diff --git a/build/creating_data/docker-images-collector.sh b/build/creating_data/docker-images-collector.sh
index c07de107..76ee9016 100755
--- a/build/creating_data/docker-images-collector.sh
+++ b/build/creating_data/docker-images-collector.sh
@@ -40,15 +40,13 @@ usage () {
}
parse_yaml() {
-python - <<PYP
-#!/usr/bin/python
-from __future__ import print_function
+python3 - <<PYP
+#!/usr/bin/python3
import yaml
import sys
with open("${1}", 'r') as f:
values = yaml.load(f, Loader=yaml.SafeLoader)
-
enabled = filter(lambda x: values[x].get('enabled', False) == True, values)
print(' '.join(enabled))
PYP
diff --git a/build/requirements.txt b/build/requirements.txt
index 441b3fcb..4b0cb3ba 100644
--- a/build/requirements.txt
+++ b/build/requirements.txt
@@ -1,2 +1,3 @@
docker>=3.7.2
gitpython==3.1.0
+pyyaml>=5.1.2