diff --git a/pytest_html/plugin.py b/pytest_html/plugin.py
index 89b30e0f..2cea0a91 100644
--- a/pytest_html/plugin.py
+++ b/pytest_html/plugin.py
@@ -466,7 +466,7 @@ def _generate_environment(self, config):
environment = [html.h2('Environment')]
rows = []
- keys = [k for k in metadata.keys() if metadata[k]]
+ keys = [k for k in metadata.keys()]
if not isinstance(metadata, OrderedDict):
keys.sort()