From fab3cc86ac9cbaae58b99863b64589a2f9d74cdb Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 27 Dec 2010 16:00:01 -0500 Subject: [PATCH] added hostname_to_urn() method --- sfa/util/plxrn.py | 2 ++ 1 file changed, 2 insertions(+) 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): -- 2.47.0