Changeset a398ec9 for fedd


Ignore:
Timestamp:
Nov 23, 2008 5:14:31 PM (16 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:
c35207d
Parents:
1653a08
Message:

remove option conflict

Location:
fedd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_access.py

    r1653a08 ra398ec9  
    3838    class parse_error(RuntimeError): pass
    3939
    40     bool_attrs = ("dynamic_projects", "project_priority")
     40    bool_attrs = ("dynamic_projects", "project_priority", "allow_proxy")
    4141    emulab_attrs = ("boss", "ops", "domain", "fileserver", "eventserver")
    4242    id_attrs = ("testbed", "proxy",
     
    686686            return resp
    687687        else:
    688             resp = self.proxy_RequestAccess.call_service(dt, req,
    689                         self.proxy_cert_file, self.proxy_cert_pwd,
    690                         self.proxy_trusted_certs)
    691             if resp.has_key('RequestAccessResponseBody'):
    692                 return resp['RequestAccessResponseBody']
    693             else:
    694                 return None
     688            if self.allow_proxy:
     689                resp = self.proxy_RequestAccess.call_service(dt, req,
     690                            self.proxy_cert_file, self.proxy_cert_pwd,
     691                            self.proxy_trusted_certs)
     692                if resp.has_key('RequestAccessResponseBody'):
     693                    return resp['RequestAccessResponseBody']
     694                else:
     695                    return None
     696            else:
     697                raise service_error(service_error.access,
     698                        "Access proxying denied")
    695699
    696700    def ReleaseAccess(self, req, fid):
  • fedd/fedd_client.py

    r1653a08 ra398ec9  
    151151                    callback=add_node_callback, callback_args=(node_descs,),
    152152                    help="Node description: image:hardware[:count]")
    153         self.add_option("-p", "--project", action="store", dest="project",
    154                 type="string",
    155                 help="Use a project request with this project name")
    156153        self.add_option("-t", "--testbed", action="store", dest="testbed",
    157154                type="string",
Note: See TracChangeset for help on using the changeset viewer.