mirror of https://github.com/docker/compose.git
fix python3.x _asdict() return None
Signed-off-by: mengskysama <mengskysama@gmail.com>
This commit is contained in:
parent
2c83c9ffb9
commit
3a76f95e28
|
@ -258,7 +258,7 @@ class ServiceSecret(namedtuple('_ServiceSecret', 'source target uid gid mode')):
|
|||
|
||||
def repr(self):
|
||||
return dict(
|
||||
[(k, v) for k, v in self._asdict().items() if v is not None]
|
||||
[(k, v) for k, v in zip(self._fields, self) if v is not None]
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue