git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b55c56e
)
added hostname_to_urn() method
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 27 Dec 2010 21:00:01 +0000
(16:00 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 27 Dec 2010 21:00:01 +0000
(16:00 -0500)
sfa/util/plxrn.py
patch
|
blob
|
history
diff --git
a/sfa/util/plxrn.py
b/sfa/util/plxrn.py
index
89efd4d
..
12e32d0
100644
(file)
--- 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):