From 2069650e74a523ee32f2017b5dcdfc8038e6e007 Mon Sep 17 00:00:00 2001
From: Jonas Weber <github@jonasw.de>
Date: Wed, 31 Jan 2018 12:03:21 +0000
Subject: [PATCH] Allow filling __issue from stdin

closes #130
---
 cdist/conf/type/__issue/manifest | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cdist/conf/type/__issue/manifest b/cdist/conf/type/__issue/manifest
index 06eb120a..0f0b3d83 100755
--- a/cdist/conf/type/__issue/manifest
+++ b/cdist/conf/type/__issue/manifest
@@ -25,6 +25,9 @@ os="$(cat "$__global/explorer/os")"
 
 if [ -f "$__object/parameter/source" ]; then
     source="$(cat "$__object/parameter/source")"
+    if [ "$source" = "-" ]; then
+        source="${__object}/stdin"
+    fi
 else
     case "$os" in
         archlinux|redhat)