Explorar o código

Merge pull request #2283 from dnephin/fix_not_none_log_driver

Logs are available for all log drivers except for none.
Daniel Nephin %!s(int64=10) %!d(string=hai) anos
pai
achega
eb9b8dc592
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compose/container.py

+ 1 - 1
compose/container.py

@@ -145,7 +145,7 @@ class Container(object):
     @property
     def has_api_logs(self):
         log_type = self.log_driver
-        return not log_type or log_type == 'json-file'
+        return not log_type or log_type != 'none'
 
     def attach_log_stream(self):
         """A log stream can only be attached if the container uses a json-file