From: Anil-Kumar Vengalil Date: Wed, 1 Apr 2009 12:01:27 +0000 (+0000) Subject: Minor modification to Peers.py to improve the verbose of AddPeer X-Git-Tag: PLCAPI-4.3-5~5 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=6f7ccdab41e9f70df18b6511bad929c348da9991;p=plcapi.git Minor modification to Peers.py to improve the verbose of AddPeer --- diff --git a/PLC/Peers.py b/PLC/Peers.py index bec019da..0314cd1a 100644 --- a/PLC/Peers.py +++ b/PLC/Peers.py @@ -65,7 +65,9 @@ class Peer(Row): (scheme, netloc, path, params, query, fragment) = urlparse(url) if scheme != "https": raise PLCInvalidArgument, "Peer URL scheme must be https" - + if path[-1] != '/': + raise PLCInvalidArgument, "Peer URL should end with /" + return url def delete(self, commit = True):