diff options
author | Joffrey F <joffrey@docker.com> | 2018-10-31 13:55:20 -0700 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2018-10-31 13:55:20 -0700 |
commit | 03bdd67eb54780f76753f9f98737b8e5fcf90257 (patch) | |
tree | e9c5571d5ec06a676f667f20e6440e7c4ba01436 /compose/container.py | |
parent | 69fe42027adfcdb8c348982c7a66e12b44db3734 (diff) |
Don't attempt to truncate a None value in Container.slug
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'compose/container.py')
-rw-r--r-- | compose/container.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compose/container.py b/compose/container.py index 3ee45c8f..02630686 100644 --- a/compose/container.py +++ b/compose/container.py @@ -96,6 +96,8 @@ class Container(object): @property def slug(self): + if not self.full_slug: + return None return truncate_id(self.full_slug) @property |