question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Values with custom tags are set to `null`

See original GitHub issue

So I have an ansible playbook which has tags like this:

some_key: !vault |
  $ANSIBLE_VAULT;1.1;AES256
  37663434363236326231303035313330356563343734393664373764333962663539623031346531
  6335383361386661613563386265326264613738353632310a633162393366636362633835633430
  34313038633233646432646335643336643234613133643734303530616137366132313038343035
  3039313262386130350a626364633935643562376366306631626530663037376630613565373164
  6261

When trying to extract this, to pipe it into a decrypt:

$ yq '.some_key' file.yml
null

It would be more useful to just ignore tags that aren’t recognised and pull the value out as-is, rather than just nulling the value out entirely. It might be a trivial to expose tags separately if you need them?

$ yq --tags '.some_key' file.yml
[
  "vault"
]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
GroovyCarrotcommented, Apr 3, 2018

Just had a chance to test, works perfectly 👍 thanks.

0reactions
kislyukcommented, Apr 2, 2018

Released in v2.5.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

taglib - JSP custom tags null value - Stack Overflow
I'm facing a problem with my own jsp tag. I want it to allow null-values, but if I want to give null-values to...
Read more >
How to pass attribute to a custom tag only if it evaluates to a ...
Hi, I am trying to invoke a html tag and I want the attribute to be passed to the tag only if it...
Read more >
CF2021 custom tags do not support null : r/coldfusion - Reddit
During my testing of a solution, I found that I can't set/use null values in a custom tag.
Read more >
Tag keeps going null - Ignition - Inductive Automation Forum
I have a tag data type instance where one of the tags periodically goes null. ... However, the fact that they're going to...
Read more >
How to check if a tag value is null in IBM Rational Integration ...
This document explains how it is possible to determine if a tag value is null in IBM Rational Integration Tester (RIT).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found