Commit 3507ac2b authored by Mitar's avatar Mitar

Style.

parent eca9ad1b
......@@ -100,7 +100,7 @@ group.add_argument(
'-a', '--all', action='store_true',
help="validate all primitive annotations and not just newly added"
)
group.add_argument('files', metavar='filename', nargs='*', help="primitive annotation to validate, default is all newly added", default=())
group.add_argument('files', metavar='FILENAME', nargs='*', help="primitive annotation to validate, default is all newly added", default=())
arguments = parser.parse_args()
if (arguments.username and not arguments.password) or (not arguments.username and arguments.password):
......@@ -366,7 +366,7 @@ def validate_installation(primitive_names, interface_version, installation, anno
docker_image = f'registry.gitlab.com/datadrivendiscovery/images/primitives:ubuntu-{image_ubuntu_version}-{image_interface_version}'
# Run a container which sleeps until we stop it. First we pull the latest version of the image.
print(">>> Pulling Docker image {docker_image}.".format(docker_image=docker_image), flush=True)
print(">>> Pulling Docker image '{docker_image}'.".format(docker_image=docker_image), flush=True)
previous_chunk = None
for chunk in docker_client.api.pull(docker_image, stream=True, decode=True):
if 'status' in chunk:
......@@ -378,7 +378,7 @@ def validate_installation(primitive_names, interface_version, installation, anno
previous_chunk = chunk['status']
print(">>> Running Docker image {docker_image}.".format(docker_image=docker_image), flush=True)
print(">>> Running Docker image '{docker_image}'.".format(docker_image=docker_image), flush=True)
docker_container = docker_client.containers.run(
docker_image,
['sleep', 'infinity'],
......@@ -757,6 +757,7 @@ def validate_installation(primitive_names, interface_version, installation, anno
sys.stdout.flush()
finally:
print(">>> Stopping Docker container for image '{docker_image}'.".format(docker_image=docker_image), flush=True)
docker_container.stop()
if existing_python_lib_dir is not None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment