2
import sys, os, boto, psutil, re, getpass
3
from euca_admin import local
4
from optparse import OptionParser
7
parser = OptionParser("usage: %prog FILENAME",version="Eucalyptus %prog VERSION",description="Download the admin credentials for the locally hosted Eucalyptus installation")
8
parser.add_option("-s","--source",dest="source",default=False,action="store_true",help="Unzip (and remove zipfile) and output 'eucarc'. If FILENAME is specified the archive will be extracted to `dirname FILENAME`. Otherwise, the archive is extracted to the current working directory.")
9
(options,args) = parser.parse_args()
11
if len(args) != 1 and not options.source:
16
local.get_credentials(file,options.source)
19
if __name__ == "__main__":