From ed0b94da6433b12355b18a7459978513f7547635 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Fri, 15 Mar 2019 16:10:45 +0100 Subject: [PATCH] Use python3 when creating the docker image tags python2 will be gone away soon so switch to python3. Change-Id: If0511db6fbd97fe72184b3fa1ef92f29f8cae4c7 --- tools/gate/playbooks/docker-image-build.yaml | 2 +- tools/image_tags.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/gate/playbooks/docker-image-build.yaml b/tools/gate/playbooks/docker-image-build.yaml index d379d0c4..df489f9a 100644 --- a/tools/gate/playbooks/docker-image-build.yaml +++ b/tools/gate/playbooks/docker-image-build.yaml @@ -28,7 +28,7 @@ msg: "{{ tags | to_json }}" - name: Determine tags - shell: echo '{{ tags | to_json }}' | python {{ zuul.project.src_dir }}/tools/image_tags.py + shell: echo '{{ tags | to_json }}' | python3 {{ zuul.project.src_dir }}/tools/image_tags.py environment: BRANCH: "{{ zuul.branch }}" CHANGE: "{{ zuul.change }}" diff --git a/tools/image_tags.py b/tools/image_tags.py index 48b4b4f1..be28669d 100644 --- a/tools/image_tags.py +++ b/tools/image_tags.py @@ -1,4 +1,4 @@ -#!/bin/python +#!/usr/bin/python3 # Copyright 2018 AT&T Intellectual Property. All other rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License");