mirror of
https://github.com/docker/compose.git
synced 2025-07-21 20:54:32 +02:00
Merge pull request #4824 from mengskysama/master
fix python3.x _asdict() return None
This commit is contained in:
commit
1485183072
@ -258,7 +258,7 @@ class ServiceSecret(namedtuple('_ServiceSecret', 'source target uid gid mode')):
|
|||||||
|
|
||||||
def repr(self):
|
def repr(self):
|
||||||
return dict(
|
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…
x
Reference in New Issue
Block a user