Skip to content

How to avoid adding single quote #904

Discussion options

You must be logged in to vote

The issue is in the modification. The crioNriTable key is defined as "crio.nri". The whole string is the key. You'd need to do it in two steps. For example (checks omitted for brevity) :

crio, ok := config["crio"].(map[string]interface{})
nri, ok := crio["nri"].(map[string]interface{})
nri["enable_nri"] = true

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@pelletier
Comment options

Answer selected by fmuyassarov
@fmuyassarov
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants