Feature #4246
closedAs a developer, I'd like to have a normalizer that support JSON input
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"
}
]
}
Updated by Brad Buckingham about 11 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset foreman:hammer-cli|commit:044a35c92e9c5841dda5932f303799e2bfa82157.