Skip to content

Commit

Permalink
Removing caching cruft from bin/glance
Browse files Browse the repository at this point in the history
Fixes bug 888343

Change-Id: Ief0ca93a073f8235afd98ca79f8033fef66260e3
  • Loading branch information
Brian Waldon authored and ttx committed Dec 15, 2011
1 parent c062423 commit 0d2bffa
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions bin/glance
Expand Up @@ -26,7 +26,6 @@ import functools
import gettext
import optparse
import os
import re
import sys
import time

Expand Down Expand Up @@ -81,15 +80,6 @@ def catch_error(action):
return wrap


def get_percent_done(image):
try:
pct_done = image['size'] * 100 / int(image['expected_size'])
except (ValueError, ZeroDivisionError):
# NOTE(sirp): Ignore if expected_size isn't a number, or if it's 0
pct_done = "UNKNOWN"
return pct_done


def get_image_fields_from_args(args):
"""
Validate the set of arguments passed as field name/value pairs
Expand Down Expand Up @@ -929,28 +919,6 @@ Commands:
clear Removes all images and metadata from Glance
Cache Commands:
cache-index List all images currently cached
cache-invalid List current invalid cache images
cache-incomplete List images currently being fetched
cache-prefetching List images that are being prefetched
cache-prefetch Pre-fetch an image or list of images into the cache
cache-purge Purges an image from the cache
cache-clear Removes all images from the cache
cache-reap-invalid Reaps any invalid images that were left for
debugging purposes
cache-reap-stalled Reaps any stalled incomplete images
Member Commands:
image-members List members an image is shared with
Expand Down

0 comments on commit 0d2bffa

Please sign in to comment.