git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minimal changes to have this imported by nepi in py3
[sfa.git]
/
sfa
/
client
/
sfi.py
diff --git
a/sfa/client/sfi.py
b/sfa/client/sfi.py
index
be94f82
..
8964768
100644
(file)
--- a/
sfa/client/sfi.py
+++ b/
sfa/client/sfi.py
@@
-990,7
+990,7
@@
use this if you mean an authority instead""")
try:
list = self.registry().List(hrn, self.my_credential_string, options)
except IndexError:
try:
list = self.registry().List(hrn, self.my_credential_string, options)
except IndexError:
- raise Exception
, "Not enough parameters for the 'list' command"
+ raise Exception
("Not enough parameters for the 'list' command")
# filter on person, slice, site, node, etc.
# This really should be in the self.filter_records funct def comment...
# filter on person, slice, site, node, etc.
# This really should be in the self.filter_records funct def comment...
@@
-1104,7
+1104,7
@@
use this if you mean an authority instead""")
elif record_dict['type'] in ['slice']:
try:
cred = self.slice_credential_string(record_dict['hrn'])
elif record_dict['type'] in ['slice']:
try:
cred = self.slice_credential_string(record_dict['hrn'])
- except ServerException
,
e:
+ except ServerException
as
e:
# XXX smbaker -- once we have better error return codes, update this
# to do something better than a string compare
if "Permission error" in e.args[0]:
# XXX smbaker -- once we have better error return codes, update this
# to do something better than a string compare
if "Permission error" in e.args[0]: