From 2528e569d0a53248dd9cae9b1f6aa2da5f455cdd Mon Sep 17 00:00:00 2001 From: Yaguang Tang Date: Wed, 4 Jan 2012 23:28:05 +0800 Subject: [PATCH] fix bug 911681 need not to use optparse in bin/glance-control. Change-Id: I3096a39fd0c26f9fa5243f7cc2bd25dd8d5235ea --- Authors | 1 + bin/glance-control | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Authors b/Authors index 97b3e1c1bd..f97b2a663d 100644 --- a/Authors +++ b/Authors @@ -38,4 +38,5 @@ Thierry Carrez Tom Hancock William Wolf Vishvananda Ishaya +Yaguang Tang Yuriy Taraday diff --git a/bin/glance-control b/bin/glance-control index 39d588d915..7ba2a1bdce 100755 --- a/bin/glance-control +++ b/bin/glance-control @@ -26,7 +26,6 @@ from __future__ import with_statement import errno import gettext import os -import optparse import resource import signal import sys @@ -190,7 +189,7 @@ if __name__ == '__main__': args = conf() if len(args) < 2: - oparser.print_usage() + conf.print_usage() sys.exit(1) server = args.pop(0).lower()