From: Tony Mack Date: Mon, 27 Dec 2010 21:00:01 +0000 (-0500) Subject: added hostname_to_urn() method X-Git-Tag: sfa-1.0-12~22^2~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=fab3cc86ac9cbaae58b99863b64589a2f9d74cdb;p=sfa.git added hostname_to_urn() method --- diff --git a/sfa/util/plxrn.py b/sfa/util/plxrn.py index 89efd4d3..12e32d02 100644 --- a/sfa/util/plxrn.py +++ b/sfa/util/plxrn.py @@ -5,6 +5,8 @@ from sfa.util.xrn import Xrn # temporary helper functions to use this module instead of namespace def hostname_to_hrn (auth, login_base, hostname): return PlXrn(auth=auth+'.'+login_base,hostname=hostname).get_hrn() +def hostname_to_urn(auth, login_base, hostname): + return PlXrn(auth=auth+'.'+login_base,hostname=hostname).get_urn() def slicename_to_hrn (auth_hrn, slicename): return PlXrn(auth=auth_hrn,slicename=slicename).get_hrn() def email_to_hrn (auth_hrn, email):