summaryrefslogtreecommitdiff
path: root/icktool
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-11-19 18:48:19 +0100
committerLars Wirzenius <liw@liw.fi>2017-11-19 18:48:19 +0100
commite4b5d08f07fbcc7222a864f0e60487dab770b576 (patch)
treeff9ad0cd7bb846797d99000966d78437944ac4d7 /icktool
parente8ffc8d614fdf40011b055e2fee27964d333b0eb (diff)
downloadick2-e4b5d08f07fbcc7222a864f0e60487dab770b576.tar.gz
Add: icktool reads YAML
YAML is a superset of JSON, soe old inputs will still work.
Diffstat (limited to 'icktool')
-rwxr-xr-xicktool3
1 files changed, 2 insertions, 1 deletions
diff --git a/icktool b/icktool
index 9cea74a..d290001 100755
--- a/icktool
+++ b/icktool
@@ -24,6 +24,7 @@ import apifw
import cliapp
import Crypto.PublicKey.RSA
import requests
+import yaml
import ick2
@@ -220,7 +221,7 @@ class Icktool(cliapp.Application):
sys.stdout.write('\n')
def _read_object(self):
- return json.load(sys.stdin)
+ return yaml.load(sys.stdin)
class API: