diff options
| author | Mark Goddard <mark@stackhpc.com> | 2022-06-17 12:43:50 +0100 |
|---|---|---|
| committer | Mark Goddard <mark@stackhpc.com> | 2022-06-20 08:08:11 +0000 |
| commit | cdee63e415c6ccd70a3ebcf58cf4afc9bba28537 (patch) | |
| tree | 9c9ad5b2b67367e4f3a9d290c4a1632722a723fc | |
| parent | 3e35fede9adc622610451b7b5a7f8a45b933473b (diff) | |
| download | kolla-cdee63e415c6ccd70a3ebcf58cf4afc9bba28537.tar.gz kolla-cdee63e415c6ccd70a3ebcf58cf4afc9bba28537.zip | |
Fix error message when git clone fails
1. There was no %s for the image.name
2. The image name is in the logger, so the source is more useful (which
may be a plugin or addition)
TrivialFix
Change-Id: If95a8a41d2caf6738d4ccb9ddb651a06018743f4
| -rwxr-xr-x | kolla/image/build.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kolla/image/build.py b/kolla/image/build.py index f87c43292..999c54275 100755 --- a/kolla/image/build.py +++ b/kolla/image/build.py @@ -370,7 +370,8 @@ class BuildTask(DockerTask): self.logger.debug("Git checkout by reference %s (%s)", source['reference'], reference_sha) except Exception as e: - self.logger.error("Failed to get source from git", image.name) + self.logger.error("Failed to get source from git: %s", + source['source']) self.logger.error("Error: %s", e) # clean-up clone folder to retry shutil.rmtree(clone_dir) |
