We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be0e28d commit 39ffddbCopy full SHA for 39ffddb
scripts/dmt/create_author.sh
@@ -20,4 +20,4 @@ END
20
)
21
22
woorl -s "damsel/proto/domain_config_v2.thrift" "http://dmt:8022/v1/domain/author" AuthorManagement Create "${AUTHOR_PARAMS}" |
23
-jq -r 'if has("already_exists") then .already_exists.id else .id end'
+jq -r 'if .exception == "AuthorAlreadyExists" then .data.id else .id end'
0 commit comments