diff options
author | Ulysses Souza <ulyssessouza@gmail.com> | 2021-04-13 10:32:52 -0300 |
---|---|---|
committer | Ulysses Souza <ulyssessouza@gmail.com> | 2021-04-13 10:34:06 -0300 |
commit | a9e8ae190f09f8fa98e01e12ca9dd78ff6b1c5cf (patch) | |
tree | 45413f592203a863cc0a394ea11bf9c44c09642d /compose/service.py | |
parent | 3eee3e093a987be294205fe9cf9907173cb27034 (diff) |
Revert "Add Snyk scan suggestion when building"
This reverts commit e496c641273326c7314e01f434313a56f48ba7b0.
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
Diffstat (limited to 'compose/service.py')
-rw-r--r-- | compose/service.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/compose/service.py b/compose/service.py index 1436b2da..e24519e5 100644 --- a/compose/service.py +++ b/compose/service.py @@ -367,24 +367,6 @@ class Service: "rebuild this image you must use `docker-compose build` or " "`docker-compose up --build`.".format(self.name)) - def must_build(self, do_build=BuildAction.none): - if self.can_be_built() and do_build == BuildAction.force: - return True - - try: - self.image() - return False - except NoSuchImageError: - pass - - if not self.can_be_built(): - return False - - if do_build == BuildAction.skip: - return False - - return True - def get_image_registry_data(self): try: return self.client.inspect_distribution(self.image_name) |