Merge "Fix preventing error message output"
diff --git a/_grains/docker_swarm.py b/_grains/docker_swarm.py
index 321697d..8dd6dc7 100644
--- a/_grains/docker_swarm.py
+++ b/_grains/docker_swarm.py
@@ -11,7 +11,7 @@
if os.path.exists('/var/lib/docker/swarm'):
try:
- inspect = json.loads(subprocess.check_output(["docker", "node", "inspect", "self"]).strip())[0]
+ inspect = json.loads(subprocess.check_output(["docker", "node", "inspect", "self"], stderr=subprocess.STDOUT).strip())[0]
except subprocess.CalledProcessError:
return None