~ubuntu-core-dev/eucalyptus/euca2ools

« back to all changes in this revision

Viewing changes to bin/euca-unbundle

  • Committer: Dustin Kirkland
  • Date: 2010-03-05 22:57:00 UTC
  • Revision ID: kirkland@x200-20100305225700-sweq2pmfn7mxx4df
  - LP: #531076 - fix euca-describe-instances against one instance
  - LP: #526591 - fix config file parsing

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
IMAGE_IO_CHUNK = 8 * 1024
70
70
IMAGE_SPLIT_CHUNK = IMAGE_IO_CHUNK * 1024;
71
71
 
72
 
def usage():
 
72
def usage(status=1):
73
73
    print usage_string
74
74
    Util().usage()
75
 
    sys.exit()
 
75
    sys.exit(status)
76
76
 
77
77
def version():
78
78
    print Util().version()
98
98
     
99
99
    for name, value in euca.opts:
100
100
        if name in ('-h', '--help'):
101
 
            usage()
 
101
            usage(0)
102
102
        elif name in ('-k', '--privatekey'):
103
103
            private_key_path = value
104
104
        elif name in ('-m', '--manifest'):