Ignore:
Timestamp:
Nov 5, 2008 1:37:28 AM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
9c166cf
Parents:
01308c9
Message:

Add support for a real fedkit tar file rather than the ad hoc script stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_client.py

    r01308c9 r2c6128f  
    123123                type="string", help="Use this username instead of the uid")
    124124
     125class fedd_split_opts(fedd_create_opts):
     126    def __init__(self, access_keys, add_key_callback=None,
     127            add_cert_callback=None):
     128        fedd_create_opts.__init__(self, access_keys, add_key_callback,
     129                add_cert_callback)
     130        self.add_option('-t','--fedkit', action='store_true', dest='fedkit',
     131                default=False,
     132                help="get output suitable for federation kit install")
     133
     134
    125135class fedd_access_opts(fedd_create_opts):
    126136    def __init__(self, access_keys, node_descs, add_key_callback=None,
     
    605615        access_keys = []
    606616        # Process the options using the customized option parser defined above
    607         parser = fedd_create_opts(access_keys, self.add_ssh_key,
     617        parser = fedd_split_opts(access_keys, self.add_ssh_key,
    608618                self.add_x509_cert)
    609619
     
    619629
    620630        if opts.cert != None: cert = opts.cert
     631        else: cert = None
    621632
    622633        if cert == None:
     
    650661                'description': { 'ns2description': exp_desc },
    651662                'master': opts.master,
     663                'include_fedkit': opts.fedkit,
    652664                }
    653665
Note: See TracChangeset for help on using the changeset viewer.