summaryrefslogtreecommitdiffstats
path: root/build/creating_data
diff options
context:
space:
mode:
authorTomáš Levora <t.levora@partner.samsung.com>2020-04-09 10:14:57 +0200
committerTomáš Levora <t.levora@partner.samsung.com>2020-04-09 10:25:49 +0200
commit3695cb32700afc1b00cc6f6b58c698343a550bd0 (patch)
treecbd7ede1d7d20fbea64344b64943fb26a9acc508 /build/creating_data
parent12e752ba35476f48b0253b1dd2a8a1ebe020da0e (diff)
Remove python 2 dependency
Removing python 2 dependency from docker-image-collector.sh Issue-ID: OOM-2359 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com> Change-Id: I6aa4d27cdb10e93981e3dacfb16b2d02a0bf0762
Diffstat (limited to 'build/creating_data')
-rwxr-xr-xbuild/creating_data/docker-images-collector.sh6
1 files changed, 2 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