Project

General

Profile

Actions

Feature #4246

closed

As a developer, I'd like to have a normalizer that support JSON input

Added by Brad Buckingham over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

In order to support the katello content view filters, we have found that it is useful to have an option input normalizer that can take as an input either a json string or a path to a file that contains json input. This has been temporarily added in to the hammer-cli-katello; however, proposing to add it hammer-cli for the benefit of other users.

For example:

  • json string:
    --parameters '{ "units":[ { "name":"zoop", "version":"9.0", "inclusion":"false" } ] }'
  • json file:
    --parameters '/path/to/my/file.json'

    where the file might contain something like the following: {
    "units":[ {
    "name":"zip",
    "version":"10.0",
    "inclusion":"true"
    }, {
    "name":"zap",
    "version":"1.0",
    "inclusion":"true"
    }, {
    "name":"zoop",
    "version":"9.0",
    "inclusion":"false"
    }
    ]
    }

Actions #1

Updated by Brad Buckingham over 10 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset foreman:hammer-cli|commit:044a35c92e9c5841dda5932f303799e2bfa82157.

Actions

Also available in: Atom PDF