From 3a76f95e284f7011c96e3482a91c8b558787d745 Mon Sep 17 00:00:00 2001 From: mengskysama Date: Mon, 15 May 2017 15:22:22 +0800 Subject: [PATCH] fix python3.x _asdict() return None Signed-off-by: mengskysama --- compose/config/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose/config/types.py b/compose/config/types.py index 5d3bb5cb7..d853d84f4 100644 --- a/compose/config/types.py +++ b/compose/config/types.py @@ -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] )