[Pulp-list] Repo Notes
Jay Dobies
jason.dobies at redhat.com
Mon Apr 16 15:00:07 UTC 2012
I finished adding support for manipulating notes on a repo through
create and update. The CLI flag is --note and can be specified multiple
times to manipulate multiple notes:
= At Repo Create =
pulp-v2-admin repo create --id x --note a=a --note b=b
# --note can be specified multiple times
Notes: {a : a, b : b}
= Update =
pulp-v2-admin repo update --id x --note a=x --note c=c
# b is left unchanged since it was not specified.
# a is updated, c is added; same syntax
Notes: {a : x, b : b, c : c}
= Delete =
pulp-v2-admin repo update --id x --note c= --note b=""
# Either empty after the = or "", both work
Notes: {a : x}
= Invalid =
pulp-v2-admin repo update --id x --note b
Output: "Notes must be specified in the format key=value"
--
Jay Dobies
Freenode: jdob @ #pulp
http://pulpproject.org | http://blog.pulpproject.org
More information about the Pulp-list
mailing list