Description of problem: [root@preethi ~]# pulp-admin repo create --id=test-notes --notes="note" Traceback (most recent call last): File "/usr/bin/pulp-admin", line 202, in <module> admin.main() File "/usr/lib/python2.7/site-packages/pulp/client/cli/base.py", line 117, in main command.main(args[1:]) File "/usr/lib/python2.7/site-packages/pulp/client/core/base.py", line 116, in main action.main(args[1:]) File "/usr/lib/python2.7/site-packages/pulp/client/core/base.py", line 204, in main self.run() File "/usr/lib/python2.7/site-packages/pulp/client/core/repo.py", line 513, in run notes = eval(self.opts.notes) File "<string>", line 1, in <module> NameError: name 'note' is not defined [root@preethi ~]# [root@preethi ~]# pulp-admin repo create --id=test-notes --notes=note Traceback (most recent call last): File "/usr/bin/pulp-admin", line 202, in <module> admin.main() File "/usr/lib/python2.7/site-packages/pulp/client/cli/base.py", line 117, in main command.main(args[1:]) File "/usr/lib/python2.7/site-packages/pulp/client/core/base.py", line 116, in main action.main(args[1:]) File "/usr/lib/python2.7/site-packages/pulp/client/core/base.py", line 204, in main self.run() File "/usr/lib/python2.7/site-packages/pulp/client/core/repo.py", line 513, in run notes = eval(self.opts.notes) File "<string>", line 1, in <module> NameError: name 'note' is not defined Version-Release number of selected component (if applicable): [root@preethi ~]# rpm -q pulp pulp-0.0.218-1.fc14.noarch
Added input validation and error message with a correct format for notes input. $ sudo pulp-admin repo create --id=ssss --notes="notes" Invalid argument for notes. Notes need to be specified in dictionary form inside a string eg. "{'key':'value'}" $ sudo pulp-admin repo create --id=test --notes="{'key':'value'}" Successfully created repository [ test ]
build: 0.223
verified [root@preethi ~]# pulp-admin repo create --id=ssss --notes="notes" Invalid argument for notes. Notes need to be specified in dictionary form inside a string eg. "{'key':'value'}" [root@preethi ~]# pulp-admin repo create --id=test --notes="{'key':'value'}" Successfully created repository [ test ] [root@preethi ~]# rpm -q pulp pulp-0.0.223-1.fc14.noarch [root@preethi ~]#
Closing with Community Release 15 pulp-0.0.223-4.