Commit 67083ca0 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Fix typo in error docs

parent 8d427cb9
......@@ -41,16 +41,7 @@ from time import mktime
from logging import getLogger
from argparse import ArgumentParser, ArgumentError
from argparse import RawDescriptionHelpFormatter
try:
from progress.bar import ShadyBar as KamakiProgressBar
except ImportError:
try:
from progress.bar import Bar as KamakiProgressBar
except ImportError:
pass
# progress not installed - pls, pip install progress
pass
from progress.bar import ShadyBar as KamakiProgressBar
log = getLogger(__name__)
......@@ -320,10 +311,6 @@ class ProgressBarArgument(FlagArgument):
def __init__(self, help='', parsed_name='', default=True):
self.suffix = '%(percent)d%%'
super(ProgressBarArgument, self).__init__(help, parsed_name, default)
try:
KamakiProgressBar
except NameError:
log.warning('WARNING: no progress bar functionality')
def clone(self):
"""Get a modifiable copy of this bar"""
......
......@@ -367,7 +367,7 @@ class plankton(object):
about_image_id = [
'How to pick a suitable image:',
'* get a list of image ids: /image list',
'* details of image: /flavor info <image id>']
'* details of image: /image meta <image id>']
@classmethod
def connection(this, foo):
......
......@@ -51,19 +51,11 @@ suggest = dict(ansicolors=dict(
try:
from colors import magenta, red, yellow, bold
except ImportError:
# No colours? No worries, use dummy foo instead
def dummy(val):
return val
red = yellow = magenta = bold = dummy
#from kamaki.cli import _colors
#if _colors.lower() == 'on':
suggest['ansicolors']['active'] = True
try:
from progress.bar import ShadyBar
except ImportError:
suggest['progress']['active'] = True
def suggest_missing(miss=None, exclude=[]):
global suggest
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment