OpenStack Image Registry and Delivery Service (Glance)

oparser missing in bin/glance-control

Reported by Zhongyue Luo on 2012-01-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Low
Yaguang Tang

Bug Description

"oparser" is defined nowhere.

https://github.com/openstack/glance/blob/master/bin/glance-control#L193

if __name__ == '__main__':
    conf = config.GlanceConfigOpts(usage=USAGE)
    conf.register_cli_opt(cfg.StrOpt('pid-file',
                                     metavar='PATH',
                                     help='File to use as pid file. Default: '
                                          '/var/run/glance/$server.pid'))
    args = conf()

    if len(args) < 2:
        oparser.print_usage()
        sys.exit(1)

    server = args.pop(0).lower()

Yaguang Tang (heut2008) on 2012-01-04
Changed in glance:
assignee: nobody → yaguang tang (heut2008)

Fix proposed to branch: master
Review: https://review.openstack.org/2784

Changed in glance:
status: New → In Progress
Jay Pipes (jaypipes) on 2012-01-04
Changed in glance:
milestone: none → essex-3
importance: Undecided → Low

Reviewed: https://review.openstack.org/2784
Committed: http://github.com/openstack/glance/commit/2528e569d0a53248dd9cae9b1f6aa2da5f455cdd
Submitter: Jenkins
Branch: master

commit 2528e569d0a53248dd9cae9b1f6aa2da5f455cdd
Author: Yaguang Tang <email address hidden>
Date: Wed Jan 4 23:28:05 2012 +0800

    fix bug 911681

    need not to use optparse in bin/glance-control.

    Change-Id: I3096a39fd0c26f9fa5243f7cc2bd25dd8d5235ea

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2012-01-25
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in glance:
milestone: essex-3 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers