"metadata": {
"kind": "compute#metadata",
"items": [
{
"key": "serial-port-logging-enable",
"value": "true"
},
{
"key": "cluster-name",
"value": "cluster-1"
},
I want to print the value of value
, when the key
is "cluster-name"
So here I want to print cluster-1
from the above data.
Can someone help me with what I can do?
My try
cluster_name = (response['metadata']['items'][0]('key'))