oparser missing in bin/glance-control

Bug #911681 reported by Zhongyue Luo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
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)
Changed in glance:
assignee: nobody → yaguang tang (heut2008)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

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

Changed in glance:
status: New → In Progress
Jay Pipes (jaypipes)
Changed in glance:
milestone: none → essex-3
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

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)
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: essex-3 → 2012.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.