Merge pull request #659 from devinsolutions/docker-config

__docker_config: Fix config-data explorer
This commit is contained in:
Darko Poljak 2018-05-04 17:07:50 +02:00 committed by GitHub
commit 6c462b2617
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

3
cdist/conf/type/__docker_config/explorer/config-data Normal file → Executable file
View file

@ -18,4 +18,5 @@
# along with cdist. If not, see <http://www.gnu.org/licenses/>. # along with cdist. If not, see <http://www.gnu.org/licenses/>.
# #
docker config inspect "${__object_id:?}" | jq -r '.[0].Spec.Data' | base64 -d docker config inspect "${__object_id:?}" --format '{{json .Spec.Data}}' \
2>/dev/null | tr -d '"' | base64 -d