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
from import ShadyBar as KamakiProgressBar
except ImportError:
from import Bar as KamakiProgressBar
except ImportError:
# progress not installed - pls, pip install progress
from 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)
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>']
def connection(this, foo):
......@@ -51,19 +51,11 @@ suggest = dict(ansicolors=dict(
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
from 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