summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-04-21 13:53:52 +0000
committerGerrit Code Review <gerrit@onap.org>2020-04-21 13:53:52 +0000
commitdc387a0b6ca22b2c30830e7564d3af967ee80ebc (patch)
tree4eb4eea222b8577405dba6e0d4fe0468b1f450bb
parentc407c460c47bf3b38def4cd91c3d46ff99b2f2ff (diff)
parent3695cb32700afc1b00cc6f6b58c698343a550bd0 (diff)
Merge "Remove python 2 dependency"
-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