Skip to content

Valid JSON, can't figure out how to jgrep #17

@jblaine

Description

@jblaine

I've tried a lot, but cannot figure out how to "show the tags field for those matching state=running". If anyone has any suggestions, I would love to hear them. I could not find any other way to contact someone, so am creating an issue. FWIW, the following passes arc90's JSON linter and is the output from "puppet node_aws list --render-as json"

[
 {
    "i-09387672": {
      "id": "i-09387672",
      "tags": "{\"Name\"=>nil, \"node-type\"=>\"bastion\"}",
      "dns_name": "ec2-23-21-146-98.compute-1.amazonaws.com",
      "state": "running",
      "created_at": "Sat Aug 18 18:31:48 UTC 2012",
      "keyname": "bld_admin"
    },
    "i-c8d3d5b2": {
      "id": "i-c8d3d5b2",
      "tags": "{\"Name\"=>\"graph-inserter-1\"}",
      "dns_name": null,
      "state": "stopped",
      "created_at": "Thu Sep 20 05:36:41 UTC 2012",
      "keyname": "jlekey"
    }
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions