Bug 666959 - pulp-client update returns an error
Summary: pulp-client update returns an error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
: 667180 (view as bug list)
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-01-03 20:25 UTC by dgao
Modified: 2013-09-09 16:32 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-16 14:02:42 UTC
Embargoed:


Attachments (Terms of Use)

Description dgao 2011-01-03 20:25:48 UTC
[root@pulp-nightly ~]# pulp-client consumer create --id=foo
warning: this client is not registered; please register to continue
Successfully created consumer [ foo ]


[root@pulp-nightly ~]# pulp-client consumer update --id foo
Traceback (most recent call last):
  File "/usr/bin/pulp-client", line 63, in <module>
    client.main()
  File "/usr/lib/python2.6/site-packages/pulp/client/cli/base.py", line 99, in main
    command.main(args[1:])
  File "/usr/lib/python2.6/site-packages/pulp/client/core/base.py", line 118, in main
    action.main(args[1:])
  File "/usr/lib/python2.6/site-packages/pulp/client/core/base.py", line 229, in main
    self.run()
  File "/usr/lib/python2.6/site-packages/pulp/client/core/consumer.py", line 185, in run
    system_exit(os.EX_DATAERR, _("Error updating consumer [%s]." % consumer_id))
NameError: global name 'consumer_id' is not defined

Comment 1 Pradeep Kilambi 2011-01-03 20:42:13 UTC
commit 9860b277a9df5028fb24f37d0fc51c21b5a6d2b6
Author: Pradeep Kilambi <pkilambi>
Date:   Mon Jan 3 15:41:50 2011 -0500


$ sudo pulp-client consumer update
Successfully updated consumer [foo] profile

Comment 2 Pradeep Kilambi 2011-01-04 18:48:25 UTC
*** Bug 667180 has been marked as a duplicate of this bug. ***

Comment 3 Jay Dobies 2011-01-05 19:45:28 UTC
Fixed in 0.120.

Comment 4 Preethi Thomas 2011-01-05 22:04:11 UTC
verified


[root@preethi ~]# pulp-admin consumer list
+------------------------------------------+
            Consumer Information
+------------------------------------------+
[root@preethi ~]# pulp-client consumer create --id=preethi.usersys.redhat.com
Successfully created consumer [ preethi.usersys.redhat.com ]

[root@preethi ~]# pulp-client consumer update
Successfully updated consumer [preethi.usersys.redhat.com] profile

[root@preethi ~]# pulp-client consumer update --id=preethi.usersys.redhat.com
Successfully updated consumer [preethi.usersys.redhat.com] profile

[root@preethi ~]# rpm -q pulp
pulp-0.0.120-1.fc14.noarch

Comment 5 Preethi Thomas 2011-08-16 14:02:42 UTC
Closing with Community Release 15

pulp-0.0.223-4.


Note You need to log in before you can comment on or make changes to this bug.